陳瓊芳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))
911.很優,要如此留下學習的軌跡。https://fang-1116.blogspot.com/2026/09/pythonord.html
回覆刪除