import zipfile
z = zipfile.ZipFile("a.zip","w")
z.write("a.txt")
z.write("b.txt")
z.close()
Traceback (most recent call last):
File "D:\尚学堂python学习程序\文件操作\zipfile.py", line 2, in <module>
import zipfile
File "D:\尚学堂python学习程序\文件操作\zipfile.py", line 3, in <module>
z = zipfile.ZipFile("a.zip","w")
AttributeError: partially initialized module 'zipfile' has no attribute 'ZipFile' (most likely due to a circular import)
老师为什么会报错啊