獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
f = open("demofile3.txt", "w") f.write("Woops! I have deleted the content!") f.close() #open and read the file after the overwriting: f = open("demofile3.txt", "r") print(f.read())
糟糕!我刪除了內容!