摘要:
class A: def test(self): print('print from A') pass class B(A): # def test(self): # print('print from B') pass class C(A): def test(self): print('prin 阅读全文
posted @ 2021-05-13 15:06
ty1539
阅读(82)
评论(0)
推荐(0)
摘要:
file.seek()方法标准格式是:seek(offset,whence=0)offset:开始的偏移量,也就是代表需要移动偏移的字节数, whence:给offset参数一个定义,表示要从哪个位置开始偏移;0代表从文件开头开始算起,1代表从当前位置开始算起,2代表从文件末尾算起。默认为0 whe 阅读全文
posted @ 2021-05-13 10:13
ty1539
阅读(552)
评论(0)
推荐(0)

浙公网安备 33010602011771号