摘要: IP地址分类 A 0.0.0.0 - 127.255.255.255 B 128.0.0.0 - 191.255.255.255 C 192.0.0.0 - 223.255.255.255 D 224.0.0.0 - 239.255.255.255 E 240.0.0.0 - 255.255.255 阅读全文
posted @ 2024-04-15 14:05 腹肌猿 阅读(6) 评论(0) 推荐(0) 编辑
摘要: `` - python2相当于repr python3不能使用 Input - python2如果输入字符需要加双引号,数字不需要加 python3 数字字符都可以 Raw_input - python2输入数字字符都可以 python3丢弃 except Exception, e: - pytho 阅读全文
posted @ 2023-11-20 14:13 腹肌猿 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 指定用户名下载 密码中如果有某些符号如'>',我们需给他编码'%3E' git clone https://username:password@github.com/xxx.git 指定token下载 附带代理(生成token时一定要保存,否则以后看不到的) git clone https://to 阅读全文
posted @ 2023-06-02 14:37 腹肌猿 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: spammodule.c #include <Python.h> static PyObject * spam_system(PyObject *self, PyObject *args) { const char *command; int sts; if (!PyArg_ParseTuple(a 阅读全文
posted @ 2023-05-28 22:52 腹肌猿 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 最近在做自动化时,自动化脚本用sshpass给远程机器发送命令(sshpass -p "123456" ssh -p 10022 root@localhost -o StrictHostKeyChecking=no "poweroff") 报错:Permission denied, please t 阅读全文
posted @ 2023-05-24 16:13 腹肌猿 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 假如有两个分支,dev和主分支master 首先,我们在dev分支修改了东西 git add . git commit -m "update info" 然后切换到主分支master git merge dev git push origin master 在git push之前最好先git pul 阅读全文
posted @ 2023-05-13 22:42 腹肌猿 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-05-13 22:38 腹肌猿 阅读(10) 评论(0) 推荐(0) 编辑
摘要: C:\Users\xxx>ssh root@10.239.168.39 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @ 阅读全文
posted @ 2023-05-06 14:57 腹肌猿 阅读(46) 评论(0) 推荐(0) 编辑
摘要: ret = requests.get(url) #print(ret.text) ret = ret.content.decode("gbk") 报错 UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 350: il 阅读全文
posted @ 2023-03-14 20:09 腹肌猿 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 在爬虫爬取网页数据时有时会遇到中文 此时不要用requests的text方法,用content方法 #print(ret.text) print(ret.content) 此时中文转变成了16进制,我们用decode("gbk")方法将其转化为中文 ret.content.decode("gbk") 阅读全文
posted @ 2023-03-14 19:38 腹肌猿 阅读(268) 评论(0) 推荐(0) 编辑