mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-02-20 16:20:27 +00:00
Add files via upload
This commit is contained in:
parent
7b7d09d458
commit
ff01bcd755
1 changed files with 9 additions and 0 deletions
9
test.py
Normal file
9
test.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 讀取文件
|
||||
with open('input.txt', 'r') as file:
|
||||
content = file.read()
|
||||
print("文件內容:", content)
|
||||
|
||||
# 寫入文件
|
||||
with open('output.txt', 'w') as file:
|
||||
file.write("這是寫入的新內容。")
|
||||
print("內容已寫入output.txt")s
|
Loading…
Add table
Reference in a new issue