劉任昌PYTHON的ord與chr等於unicode與unichar
使用html指令與css指令
a = '一' #python可以使用單或雙表示字元 print(a,"的字碼",ord(a)) for i in range(19968,20000): print(i,"字元",chr(i))
=UNICODE(A1048570) 一 19968 的字碼 19968 一 =UNICHAR(A1048571) 19969 丁 UNI代表UNICODE 19970 丂 CHAR代表CHARACTER字元 19971 七 19972 丄 19973 丅
留言
張貼留言