![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
xiaoma121212
这个作者很懒,什么都没留下…
展开
-
解决WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available. You should consid
WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.You should consider upgrading via the ‘f:\demopy\python.exe -m pip install --upgrade pip’ command.执行:python -m pip install -U --force-reinstall pip原创 2020-12-05 14:13:34 · 10662 阅读 · 5 评论 -
python 笔记
python笔记 详见:https://book.apeland.cn/details/173/转载 2020-11-18 10:41:17 · 139 阅读 · 0 评论 -
Python中的 if __name__ == “__main__“到底是个啥意思?
转载于:https://blog.csdn.net/weixin_35684521/article/details/81396434 侵删对于Python初学者来说,在看别人代码时经常会看到if name == “main”,这时心里就开始吐槽:“绝对又是装逼,我特么不写这句话,代码不照样跑得好好的!我刚开始碰到这行代码时,心里也是这样想的!吐槽归吐槽,存在必然有存在的道理。现在就来看看这句代码到底是个啥意思,因为这句话能够帮你对Python模块的理解上一个层次。通过例子来理解只要你创建了一个模块转载 2020-11-13 13:22:47 · 275 阅读 · 0 评论 -
python 复制文件夹
转载于:https://blog.csdn.net/zhuchuana/article/details/105679888from shutil import copyimport os#dir 需拷贝的文件夹,newdir是拷贝的地方def copy_dir(dir,newdir): for p in os.listdir(dir): print(p) filepath=newdir+'/'+p oldpath=dir+'/'+p转载 2020-11-02 15:16:22 · 299 阅读 · 1 评论 -
Python Selenium库的使用
详见:https://blog.csdn.net/weixin_36279318/article/details/79475388原创 2020-10-19 10:46:26 · 88 阅读 · 0 评论 -
python 永久配置镜像源
转载于:https://blog.csdn.net/qq_44966163/article/details/106085213没有配置镜像源的情况下,利用pip下载库会是龟速。下面介绍一劳永逸法和临时法,根据自己需求选择。1.国内常用的一些镜像源阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douban) http://pypi.douban.com/sim转载 2020-10-15 11:42:32 · 974 阅读 · 0 评论