![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
singa1230
这个作者很懒,什么都没留下…
展开
-
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
执行接口的时候出现如下错误:requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.110.201', port=443): Max retries exceeded with url: /api/get.htm (Caused by NewConnectionError('<urllib3.conne...原创 2019-08-27 13:53:54 · 11328 阅读 · 0 评论 -
IOError: [Errno socket error] [Errno 99] Cannot assign requested address
执行接口的时候出现如下错误:requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.110.201', port=443): Max retries exceeded with url: /api/get.htm (Caused by NewConnectionError('<urllib3.conne...原创 2019-08-27 13:53:08 · 1305 阅读 · 0 评论 -
python从一个excel文件中读取相关的内容到新的excel文件中
#coding:utf-8'''Created on 2019年8月从一个excel文件中读取相关的内容保存到新的excel文件中,去掉已重复的名称testWrite.xlsx和testRead.xlsx都在当前目录下@author: test'''import xlsxwriterimport osimport xlrddef readWriteExcel(): ...原创 2019-08-27 14:55:47 · 1501 阅读 · 1 评论 -
python对txt文件的读写操作
#coding:utf-8'''Created on 2019年8月从一个TXT文件中读取相关的内容保存到新的TXT文件中python常用的读取文件函数有三种read()、readline()、readlines() r 以只读模式打开文件 光标在文件开头 如果文件不存在,则出错r+ 以读写模式打开文件 光标在文件开头 如果文件不存在,则出错。读写都...原创 2019-08-28 11:09:01 · 445 阅读 · 0 评论