- Julia 1.0 Programming Complete Reference Guide
- Ivo Balbaert Adrian Salceanu
- 156字
- 2021-06-24 14:21:42
Characters
Like C or Java, but unlike Python, Julia implements a type for a single character, the Char type. A character literal is written as 'A', where typeof('A') returns Char. A Char value is a Unicode code point, and it ranges from '\0' to '\Uffffffff'. Convert this to its code point with Int(): Int('A') returns 65, and Int('α') returns 945, so this takes two bytes.
The reverse also works: Char(65) returns 'A', Char(945) returns '\u3b1', which is the code point for α (3b1 is hexadecimal for 945).
Unicode characters can be entered by a \u in single quotes, followed by four hexadecimal digits (ranging from 0-9 or A-F), or \U followed by eight hexadecimal digits. The isvalid(Char, value) function can test whether a number returns an existing Unicode character: isvalid(Char,0x3b1) returns true. The normal escape characters, such as \t (tab), \n (newline), \', and so on, also exist in Julia.
- 信息可視化的藝術:信息可視化在英國
- Vue.js前端開發基礎與項目實戰
- 營銷數據科學:用R和Python進行預測分析的建模技術
- React.js Essentials
- 單片機應用技術
- Hands-On Automation Testing with Java for Beginners
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- HTML5 APP開發從入門到精通(微課精編版)
- Mastering Unity 2D Game Development(Second Edition)
- Kubernetes源碼剖析
- Moodle 3 Administration(Third Edition)
- Learning Concurrency in Python
- 3ds Max 2018從入門到精通
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- Python深度學習(第2版)