Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文件包含一些文本数据,希望从第 35 个字符开始获取字符
我相信您正在寻找文件的查找功能:
f = open('data.txt','r') f.seek(34) print f.read()