mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 17:46:47 +00:00
1.02
This commit is contained in:
parent
c0062efb4a
commit
8ba8b10c91
2 changed files with 10 additions and 1 deletions
9
code.py
Normal file
9
code.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 讀取文件
|
||||
with open('input.txt', 'r') as file:
|
||||
content = file.read()
|
||||
print("文件內容:", content)
|
||||
|
||||
# 寫入文件
|
||||
with open('output.txt', 'w') asd file:
|
||||
file.write("這是寫入的新內容。")
|
||||
print("內容已寫入output.txt")
|
Loading…
Add table
Add a link
Reference in a new issue