翁奕鎧w3schools字串str串列list集合set字典dict元組tuple
file = open('金融常識.txt','r',encoding='utf-8')
reading = file.read()
file.close()
print('檔案字元characters數:', len(reading))
mySet = set(reading)
print(f'字元數目{len(reading):,},不同字元數{len(mySet):,}')
'''myDict = dict()
for j in mySet:
myDict[j] = 0
for i in reading:
myDict[i] += 1
for j in mySet:
print(f"字元「{j}」出現{myDict[j]:,}次數")'''
1016,商業軟體,要使用pre border才能清楚呈現,https://nigaisgood.blogspot.com/2026/10/excelmatchindexisnumber.html
回覆刪除1015,w3schools字典。https://nigaisgood.blogspot.com/2026/10/w3schoolsstrlistsetdicttuple.html
0821,雙迴圈,https://ni一gaisgood.blogspot.com/2026/09/double-loopemoji.html
0913,金融常識測驗動態網頁順利執行1016,商業軟體,要使用pre border才能清楚呈現,https://nigaisgood.blogspot.com/2026/10/excelmatchindexisnumber.html