- 博客(2)
- 收藏
- 关注
原创 Python3函数学习-----tell()seek()用法
f = open("a.txt",'r')#-------tell 用法print(f.read())f = open("a.txt",'r')print(f.tell())print(f.read(3))print(f.tell())f = open('a.txt', 'rb')#-------seek 用法# 判断文件指针的位置print(f.tell())# 读取一个字节,文件指针自动后移1个数据print(f.read(1))print(f.tell())# 将文件指针.
2022-04-25 14:54:09
666
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人