羅正屹python的ord與chr等於unicode與unichar

#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))
<PRE STYLE="BORDER: SOLID PINK 6PX;FONT-SIZE:1.2EM">
#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))
</PRE>

留言

  1. 918,商業軟體,如此優秀,應該多交幾個妹仔,為更多妹仔帶來幸福感!https://louzhengyi.blogspot.com/2026/09/excelfind-len-left-mid-right-power.html
    要將pythow改成python,不要讓對你崇拜的妹仔們期待落空!https://louzhengyi.blogspot.com/2026/09/excelleftmidrghtpythowfind.html
    911,商業軟體,似乎沒有看到程式設計的作業?https://louzhengyi.blogspot.com/2026/09/pythonordchrunicodeunichar.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

羅正屹w3schools字串str串列list集合set字典dict元组tuple

羅正屹python產生金融常識Javascript測驗網頁