修改utf-8特殊字符警告
This commit is contained in:
parent
521763eab9
commit
e2c0d90eea
|
|
@ -5,5 +5,5 @@ text = f"{today.year}.{today.month}.{today.day} first time use Git"
|
||||||
print(text)
|
print(text)
|
||||||
|
|
||||||
# 将内容写入文本文件,方便提交到Git仓库
|
# 将内容写入文本文件,方便提交到Git仓库
|
||||||
with open("git_note.txt", "w", encoding="utf‑8") as f:
|
with open("git_note.txt", "w", encoding="utf-8") as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue