Files
cultivation-world-simulator/src/utils/io.py
2025-08-30 21:58:43 +08:00

8 lines
173 B
Python

from pathlib import Path
def read_txt(path: Path) -> str:
"""
读入中文txt文件
"""
with open(path, "r", encoding="utf-8") as f:
return f.read()