謝庭宇PYTHON的ord與chr等於unicode與unichar
使用html指令與css指令
#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))
=UNICODE(C1048552) 一 19968 的字碼 19968 一 =UNICHAR(C1048553) 19969 丁 19970 丂 19971 七 19972 丄 19973 丅
911,商業軟體,第一次石破天驚的優秀!https://123wqeasd.blogspot.com/2026/09/pythonordchrunicodeunichar.html
回覆刪除