![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Spongebop
这个作者很懒,什么都没留下…
展开
-
Python&Linux
在Linux上运行python的技巧总结 运行python文件 python <需要运行的python文件名>.py 将python挂载到服务器上,即使退出当前客户端,也能一直运行 [Ctrl] + Z 暂停当前任务 jobs 能看到当前的任务有哪些,前面有番号 bg <番号> 将对应番号的程序挂在服务器后台运行 disown -h %1 将程序挂在服务器上,一直...原创 2019-07-13 15:12:58 · 359 阅读 · 0 评论 -
python关于乱码的问题总结(例子:人民网)
出错代码块 url = "http://people.cn" response = requests.get(url,headers = header) #此处header并未具体写出 print(response.text) 出错推测 header中的参数错误,代码输出后的产生乱码 Accept-Encoding: gzip, deflate 解决方法: 出现了问题,网上的解决办法是...原创 2019-07-07 11:39:22 · 473 阅读 · 0 评论