- 博客(2)
- 收藏
- 关注
原创 老妪能懂的 Python中的if __name__ == '__main__'
先来创建一个hello.py的文件def main(): print("hello world")main()输出结果:hello world再创建一个 world.py的文件,把hello导进去from hello import main #导入hello的包main() #调用hello的mian()方法world.py执行结果:hell...
2019-04-24 13:42:38
172
原创 爬虫之PermissionError: [Errno 13] Permission denied: ‘ghostdriver.log‘问题解决
driver=webdriver.PhantomJS(executable_path=r'D:/ProgramFiles/phantomjs-2.1.1-windows/bin/phantomjs')Traceback(mostrecentcalllast):File"ipython-input-10-5a05d2dc2ee7>",line1,in
2017-09-13 20:17:49
2471
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人