內建函數print, type, ord字碼, chr字元

 <PRE 

#python常用的內建函數print

#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))


留言

這個網誌中的熱門文章

徐湘潔python集合set字典dict統計字元數目37,241不同字元數1,251