獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
f = open("demofile2.txt", "a") f.truncate(20) f.close() #open and read the file after the truncate: f = open("demofile2.txt", "r") print(f.read())
您好!歡迎來到 de