TA的每日心情 | 慵懒 2023-10-14 18:34 |
---|
签到天数: 210 天 [LV.7]常住居民III
|
发表于 2020-3-16 08:39:58
|
显示全部楼层
本帖最后由 deeke 于 2020-3-16 08:43 编辑
+ N" R" z: }9 D
& W# \+ `6 G* j/ u1. 试试 MsgBox % SubStr("123abc我在哪儿789", 7, 1); 应该显示 "我"。
3 J- {2 G: z0 r1 g8 U% C# V+ S- p" ?9 _
2. Asc() returns a numeric value in the range 0 to 255 (for ANSI) or 0 to 0xFFFF (for Unicode).
' S( h, P8 m6 i+ ^( t试试 MsgBox, % Asc("我"); 4 K2 t+ u7 D3 c# W, H. o; h1 x- v |3 p. ?
7 l7 ?: J1 [4 N6 z" v0 F
3. Ord() returns a numeric value in the range 0 to 255 (for ANSI) or 0 to 0xFFFF (for Unicode) or 0x10000 to 0x10FFFF (for the corresponding Unicode character)., O/ e, `! d+ B& K
Apart from the Unicode supplementary character detection, Ord() is identical to Asc().$ g% h3 B* d7 Z
试试 MsgBox, % Ord("我") ;; G# X3 T# ]- O: Q, }& O
9 N, F2 ?2 j/ w* J4. "code > 127" 表示所有的编码后超过1字节的字符,比如希腊字母、中日韩文字。 |
|