"""
每秒统计当前时间并记录统计的次数
重新打开接着上次序号统计
"""
import time
def date1():
# 以附加的方式打开
f = open("logo.txt", "a+")
# 将文件偏移量移至开头
f.seek(0,
python文件偏移量和对文件读取写入的运用
于 2022-03-24 21:08:24 首次发布
"""
每秒统计当前时间并记录统计的次数
重新打开接着上次序号统计
"""
import time
def date1():
# 以附加的方式打开
f = open("logo.txt", "a+")
# 将文件偏移量移至开头
f.seek(0,