郭宥萱EXCEL的unicode與unichar相當於python的ord與chr

#python常用的內建函數print, type, ord字碼, chr字元,chr代表character
a = "一"
print(a, ord(a))
print("XFD相當於",24*26*26+6*26+4)
print("2的14次方",2**14)
for pig in range(19968,20000):
    print(pig,"字碼的字元是",chr(pig))

留言

  1. 915,商業軟體,勇於嘗試,地表最優秀的學生。妳是全人類的希望。https://teresa18885.blogspot.com/2026/09/excelleftmldrlghtpyhonfind.html
    914,金融常識測驗互動網頁,順利執行。https://teresa18885.blogspot.com/2026/09/python.html
    908,商業軟體。https://teresa18885.blogspot.com/2026/09/blog-post.html
    907.https://teresa188.blogspot.com/2026/09/excelunicodeunicharpythonordchr.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

郭宥萱Python撰寫金融常識測驗網頁