王姿予PYTHON的ord與chr等於unicode與unichar
<PRE STYLE="BORDER: SOLID PINK 6PX;FONT-SIZE:1.2EM">
a="一" #ord相當excel函數=unichde
print(a,"的字碼",ord(a))
#chr相當excel函數=unichar
for i in range(19968,20000):print(i,"字元",chr(i))
</PRE>
|
19968 |
一 |
=unicher(A1048571) |
|
19969 |
丁 |
uni代表unicode |
|
19970 |
丂 |
|
|
19971 |
七 |
|
|
19972 |
丄 |
|
|
19973 |
丅 |
914.順利執行,超級優秀!https://mina-zi.blogspot.com/2026/09/pythonjavascript.html
回覆刪除911必須在html模式下貼上,pre才會有作用。https://mina-zi.blogspot.com/2026/09/pythonordchrunicodeunichar.html