请问有哪些方法可以读取文本文件?
- 内容介绍
- 文章标签
- 相关推荐
本文共计143个文字,预计阅读时间需要1分钟。
pythondef read(size=None): if size: return input().strip()[:size] else: return input().strip()
def readline(): return input().strip()
本文共计143个文字,预计阅读时间需要1分钟。
pythondef read(size=None): if size: return input().strip()[:size] else: return input().strip()
def readline(): return input().strip()

