摘要: os.path.join()定义:连接两个或更多的路径名组件 1.如果各组件名首字母不包含'/',则函数会自动加上 import osPath1 = 'home'Path2 = 'develop'Path3 = 'code'Path10 = Path1 + Path2 + Path3Path20 = 阅读全文
posted @ 2020-03-29 17:59 蔷薇薇薇薇薇薇薇~ 阅读(638) 评论(0) 推荐(0)
摘要: 首先打开终端输入 pip3 install requests 按回车 阅读全文
posted @ 2020-03-23 01:32 蔷薇薇薇薇薇薇薇~ 阅读(145) 评论(0) 推荐(0)
摘要: 问题:在mac OSx操作系统下,安装了python第三方模块,requests、xlrt、xlwt、selenium等等,在pip中可以成功安装这些模块,但是在python中缺始终无法导入,提示“no module named xxxx”。 在python的情况下查看路径为: requests._ 阅读全文
posted @ 2020-03-23 01:25 蔷薇薇薇薇薇薇薇~ 阅读(1424) 评论(0) 推荐(0)