标签:encoding pre 移动 mod print read pen enc highlight
f = open("胡辣汤", mode="r+", encoding="utf-8") # f.seek(0,2) # 移动到末尾 # content = f.read(5) # print(content) # f.seek(0) # 移动到开头 # print(f.read()) # print(f.tell()) # 字节 f.seek(3) print(f.read())
标签:encoding pre 移动 mod print read pen enc highlight
原文地址:https://www.cnblogs.com/WANG-/p/10072343.html