file = open('金融常識.txt','r',encoding='utf-8')
lines = file.readlines()
file.close()
x = input('劉任昌入搜尋關鍵詞: ')
for line in lines:
if line.find(x) != -1: print(line,end="")
file = open('金融常識.txt','r',encoding='utf-8')
lines = file.readlines()
file.close()
x = input('劉任昌輸入搜尋關鍵詞: ')
n = 0
for line in lines:
if line.find(x) != -1:
n=n+1
print(n,' ',line,end='')
print(f'總共{n}題')
file = open('金融常識.txt','r',encoding='utf-8')
lines = file.readlines()
file.close()
x = input('劉任昌輸入搜尋關鍵詞: ')
n = 0
for line in lines:
if x in line:
n=n+1
print( n, ' ', line,end='')
print(f'總共{n}題')
file = open('金融常識.txt','r',encoding='utf-8')
reading = file.read()
file.seek(0) #回到檔案的開始
lines = file.readlines()
file.close()
print('read()方法讀共', len(reading), 'readlines()方法讀共', len(lines))
x = input('劉任昌輸入搜尋關鍵詞: ')
n = 0
for line in lines:
if x in line:
n=n+1
print( n, ' ', line,end='')
print(f'總共{n}題')
作者已經移除這則留言。
回覆刪除https://1qaz1234567890.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://ruojinnng.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://hannie0-hannie.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://lin-cen-ting.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://mina-zi.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://yeyuyu.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://www.blogger.com/blog/post/edit/289035863256802941/4843089528351828614
回覆刪除https://chialing112233.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://lzq970609.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://cenruri.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://guojhenglong.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://asfry65df.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://julian696969.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://tyuiop715547.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://louzhengyi.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://glacier0831.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://kaoreki0514.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://yiting111.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://zzy317.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://ruoyiiiiii.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://lutingjuan.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://www.blogger.com/blog/post/edit/7408110137795804233/1405348731732587656
回覆刪除作者已經移除這則留言。
回覆刪除https://serein-chen.blogspot.com/2026/10/inputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://sihyin0526.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://yubaiyan.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://gangyouli6.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://lyz0216.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/1842616417466022125/5361085818415382158
回覆刪除https://cherylevangeline.blogspot.com/2026/10/preborderred-solid-3-px-file-open.html
回覆刪除https://ding-zi-qin.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://weruowjjlsmo9k.blogspot.com/2026/10/inputfind-1.html
回覆刪除https://chang-wen-yuan.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://liuyidi.blogspot.com/2026/10/pythoninputfind-1_0958985067.html
回覆刪除https://pythonhtml1.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://123wqeasd.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://julian696969.blogspot.com/2026/10/pythoninputfind-1_0206097737.html
回覆刪除https://zxcvbnm15963.blogspot.com/2026/10/file-open.html
回覆刪除https://zhjlllll.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/6969370829164329875/4451444056293656679
回覆刪除https://www.blogger.com/blog/post/edit/preview/1070248541590854509/2306423205812906454
回覆刪除https://yppp077.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除https://cynthia088.blogspot.com/2026/10/file-open_0274634976.html
回覆刪除https://yangxinzhen.blogspot.com/2026/10/pythoninputfind-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://yuyouzi.blogspot.com/2026/11/preborderred-solid-3px-file-open.html
回覆刪除https://linhongen.blogspot.com/2026/11/pythoninputfind-1.html
回覆刪除https://linhongen.blogspot.com/2026/11/python.html
回覆刪除