劉任昌python檔案方法utf8
utf8 encoding編碼
練習程式碼
f = open("ascii.txt", "r+", encoding='utf8')
x = f.read()
print(x)
f.write("\n劉任昌") #寫入字串
f.close() #劉任昌關閉檔案r+讀增加append
print('f長度',len(x))
for i in x: #用迴圈印出每一個字元
print(i)
影片377
影片378
ascii art字元藝術
上面的原始碼,拷貝下面的code在html模式貼上就可以<iframe src="https://en.wikipedia.org/wiki/ASCII_art" height=400 width=100%></iframe>
https://kevin124574811.blogspot.com/2024/03/python.html
回覆刪除https://the-dumbest-one.blogspot.com/2024/03/pythonfilemethods.html
回覆刪除https://fanyahui.blogspot.com/2024/03/pythonfilemethods.html
回覆刪除https://sushshshaq119.blogspot.com/2024/03/python-utf-8.html
回覆刪除https://ruubyy0.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://hsiao-yu0711.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://xi-xbox-mmi.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://meimei20041026.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://yrye4312311.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://huilii.blogspot.com/2024/03/pythonfilemethods.html
回覆刪除https://ccp19890604.blogspot.com/2024/03/pythonfilemethods.html
回覆刪除https://euhffh822.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://kai2424.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://draft.blogger.com/blog/post/edit/preview/5323466090213672846/1804356091528444940
回覆刪除https://www.blogger.com/blog/post/edit/preview/141866742300809757/1752973703357840031
回覆刪除https://www.blogger.com/blog/post/edit/preview/9181995951046717335/5984922080644890556
回覆刪除https://ehiwkewh.blogspot.com/2024/03/f-openascii.html
回覆刪除https://manranwen.blogspot.com/2024/03/314.html
回覆刪除https://xuangreat.blogspot.com/2024/03/utf8-encoding-f-openascii.html
回覆刪除https://the-most-beeaut.blogspot.com/2024/03/pythonfilemethods.html
回覆刪除https://s10655075.blogspot.com/2024/03/pythonutf8.html
回覆刪除https://honghikun.blogspot.com/2024/03/pythonutf8.html
回覆刪除