呂晨寧PYTHON的ord與chr等於unicode與unichar

a="一"#ord相當EXCEL
print(a,"的字碼",ord(a))
for i in range(19968,20000):
  print(i,"字元",chr(i))
一	19968
丁	19969
19968	一
19969	丁
19970	丂
19971	七
19972	丄
19973	丅

以上html模式以下撰寫模式


a="一"#ord相當EXCEL

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

for i in range(19968,20000):

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

     
                   







留言

  1. 911.商業軟體,很完整。https://luchenning.blogspot.com/2026/09/pythonordchrunicodeunichar.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

呂晨寧excel字串處理產生金融市場常識

呂晨寧Python產生金融常識Javascript測驗網頁