- 博客(3)
- 资源 (1)
- 论坛 (1)
- 收藏
- 关注
原创 解决TypeError: 'in <string>' requires string as left operand, not int
原因在与格式没对齐username='root'tn.write(username+str('\n'))这样就会报错改成tn.write(username.encode('ascii')+str('\n'))即可希望能帮到大家
2020-01-02 22:12:36
4346
原创 报错urllib.error.URLError:urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败
找了网上很多资料都没解决,试了下就没报错了,原因是原代码导入库错了原来的是:from urllib import urlopen应该改成:from urllib.requestimport urlopen...
2020-01-02 22:09:12
3487
转载 Python:slice与indices
slice: eg: >>>e=[0,1,2,3,4,5,6] >>>s=slice(2,3) >>>e[s] [2] slice的区间左闭右开[) >>>s slice(2,3,None) slice([strar,]stop[,st...
2020-01-01 10:17:22
117
管理决策中的判断.pdf
2019-06-22
就想要个说法
发表于 2018-03-03 最后回复 2018-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝