賴若檥PYTHON的ord與chr等於unicode
<PRE STYLE=''BORDERP:5PX RED SOLID>
a="一"
print(a,'的字碼',ord(a))
for i in range(19968,20000):
print(i,"字元",chr(i))
</PRE>
一 =UNICODE(A1048553)
一 19968 的字碼
19968 一
19969 丁
19970 丂
19971 七
19972 丄
19973 丅
<PRE STYLE=''BORDERP:5PX RED SOLID>
a="一"
print(a,'的字碼',ord(a))
for i in range(19968,20000):
print(i,"字元",chr(i))
</PRE>
一 =UNICODE(A1048553)
一 19968 的字碼
19968 一
19969 丁
19970 丂
19971 七
19972 丄
19973 丅
914.在撰寫模式下貼上程式碼。沒有貼上產稱的執行結果。https://ruoyiiiiii.blogspot.com/2026/09/blog-post.html
回覆刪除911.在撰寫模式下貼上,導致PRE STYLE=''BORDERP:5PX RED SOLID沒有作用。要記得問老師或和同學討論。https://ruoyiiiiii.blogspot.com/2026/09/pythonordchrunicode.html