需要更新【pyecharts】pip install pyecharts_snapshot pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.11
ImportError: cannot import name 'options' from 'pyecharts'需要更新pyechartspip install pyecharts -U
通过:【import os】来完成:import ospath = os.getcwd()#获取当前路径listDir=os.listdir(path)#获取当前目录下的所有内容for x in listDir: print(x) 效果如下: