![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
python基础笔记
lipaisan
这个作者很懒,什么都没留下…
展开
-
下载github包慢
非常好原创 2022-12-09 14:00:58 · 201 阅读 · 0 评论 -
python报错:tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
解决python代码报错原创 2022-08-18 17:58:04 · 1710 阅读 · 0 评论 -
python与linux的交互
代码执行结果图:各位小伙伴可以拿去玩玩,快乐就完事了import osimport reimport sysimport timeimport paramiko# sys.path.extend([r'C:\Users\lxy\Documents\pycharm\部署按数据发现与分级分类\class'])from icecream import icclass All(): def __init__(self): self.data={ ..原创 2021-07-22 17:30:53 · 1493 阅读 · 0 评论 -
CENTOS离线环境安装python3.9.5
1、准备一台链接外网的centos,下载python3依赖包到路径:/home/python3/mkdir /home/python3/yumdownloader --resolve --destdir /home/python3 zlib-devel bzip2-devel openssl-devel ncurses-devel epel-release gcc gcc-c++ xz-devel readline-devel gdbm-devel下载安装包:(也下载到/home/pyth.原创 2021-07-13 12:52:22 · 778 阅读 · 0 评论 -
python的rabird.winio模拟按键鼠标(二)
按键码参考:https://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html原创 2021-05-26 16:12:31 · 1163 阅读 · 0 评论 -
python的rabird.winio模拟按键鼠标(一)
rabird.winio的Python项目详细描述拉伯德.winio警告:此库已重命名为pywinio,请改用它!winio的包装库。感谢来自亚里夫卡普兰的伟大的Winio图书馆。将从winio binary包访问winio库二进制分发。用法键盘模拟NOTICE: You must have a ps/2 keyboard connected to your PC if you test on win10 or later, otherwise this sample w.原创 2021-05-26 16:10:57 · 4369 阅读 · 2 评论 -
windos更换pip安装源
文件夹窗口内输入:%APPDATA%回车后随即跳转到一个目录,然后自行创建pip 文件夹,在文件夹内,创建pip.ini文件,内容为:[global]timeout = 6000index-url = https://pypi.tuna.tsinghua.edu.cn/simpletrusted-host = pypi.tuna.tsinghua.edu.cn上述使用的是清华的源镜像,还可以使用以下的国内源镜像:V2EX:http://pypi.v2ex.com/simpl.原创 2020-12-08 20:54:27 · 183 阅读 · 0 评论 -
windows后台运行py脚本
这里主要借助nssm工具生成自定义windos服务nssm工具下载地址:http://nssm.cc/download生成方式如下:nssm下载完毕后,在nssm.exe所在路径下打开cmd窗口,运行.\nssm install yourServiceNmae随后在打开的界面里面填入相关内容直接点击install servive即可生成windos服务了之后可运行如下命令启动服务.\nssm start mypython 结果如下:此外注意,你的Python脚本需要设原创 2020-11-29 21:36:13 · 818 阅读 · 0 评论 -
PYTHON模块简介
文章目录fake-useragent 伪装浏览器请求头的库seleniumfake-useragent 伪装浏览器请求头的库pip install fake-useragent获取各浏览器的fake-useragent ua = UserAgent()#ie浏览器的user agentprint(ua.ie)#opera浏览器print(ua.opera)#chrome浏览器print(ua.chrome)#firefox浏览器print(ua.firefox)#safr原创 2020-11-13 23:16:36 · 275 阅读 · 0 评论