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

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

留言

  1. 915.商業軟體。https://xuancenlin.blogspot.com/2026/09/excelleftmidrightpythonfind.html
    0914,金融市場常識測驗網頁,順利執行。https://xuancenlin.blogspot.com/2026/09/python.html
    907.w3schools. https://xuancenlin.blogspot.com/2026/09/print-type-ord-chr.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

林宣岑Python產生金融常識測驗網頁

林宣岑python,方法read(),seek(0),readlines()