李剛佑PYTHON的ord與chr等於UNICOD
#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))
一 19968的字碼 19968 一 19969 丁 19970 丂 19971 七 19972 丄 19973 丅 19974 丆 19975 万 19976 丈 19977 三 19978 上 19979 下 19980 丌 19981 不 19982 与 19983 丏 19984 丐 19985 丑 19986 丒 19987 专 19988 且 19989 丕 19990 世
911完美呈現,神人級別的優秀!https://gangyouli6.blogspot.com/2026/09/pythonordchrunicod.html
回覆刪除