修改utf-8特殊字符警告

This commit is contained in:
WGY 2026-08-25 16:41:53 +08:00
parent 521763eab9
commit e2c0d90eea
1 changed files with 1 additions and 1 deletions

View File

@ -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)