林岑芮PYTHON的ord與chr等於unicode與unichar

 <PRE STYLE="BORODE:5PX RED SPLID>

a = "一" #python可以使用單或雙表示字元

print(a,"的字碼"ord(a))

#chr相當EXCEL函數=UNICODE

for i in range(19968,20000)

    print(i,"字元",chr(i))

</PRE>


一  19968        的字碼

19968  一

19969  丁

19970  ㄎ  

19971  七

19972

19973





留言

  1. 918商業軟體。https://cenruri.blogspot.com/2026/09/excelfind-len-lett-mid-rightpower.html
    911商業軟體。https://cenruri.blogspot.com/2026/09/pythonordchrunicodeunichar.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

林岑芮EXCEL的函數FIND, LEN, LETT, MID, RIGHT,POWER, UNICHAR, UNICODE

林岑芮Python產生金融常識Javascript測驗網頁