江珈卉EXCEL的unicode與unichar相當於python的ord與chr

 #python常用的內建函數print, type, ord字碼, chr字元,chr代表character

one = "一" print(one,'的型態',type(one)) print(one, "的字碼", ord(one)) for i in range(19968,20000): print(i,'的字元',chr(i))






留言

  1. 915,商業軟體,記得問老師如何使用pre.江珈.https://changjiahul.blogspot.com/2026/09/excelleftmidrightpythonfind.html
    914.金融市場常識測驗順利執行!https://changjiahul.blogspot.com/2026/09/python.html
    908商業軟體,貼上圖片。https://changjiahul.blogspot.com/2026/09/excelunicodeunicharpythonordchr.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

江珈卉Python撰寫金融常識測驗網頁

江珈卉python,方法read(),seek(0),readlines(),input,in