陳瓊芳python的ord

<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>

#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. 911.很優,要如此留下學習的軌跡。https://fang-1116.blogspot.com/2026/09/pythonord.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

陳瓊芳python產生金融常識Javascript測驗網頁

陳瓊芳EXCEL函數MATCH,INDEX,ISNUMBER