- 博客(5)
- 资源 (18)
- 收藏
- 关注
原创 redis-server.exe : 无法将“redis-server.exe”项识别为 cmdlet、函数、脚本文件。。。。。。。
我是用windows powershell打开的,出现了报错信息redis-server.exe : 无法将“redis-server.exe”项识别为 cmdlet、函数、脚本文件。。。。。。。换win+r-----cmd 打开命令行工具就不报错了
2020-12-18 20:48:58
1612
3
原创 sys.argv[1] IndexError: list index out of range解决办法
1.带有sys.argv[] 不能直接run执行,而要在终端打开(open in terminal)2.在下方的终端窗口输入python 文件名.py 输入值,再回车(注意,这里的输入值按程序实际情况输入,例如我的argv[1],argv[2]、argv[3]均要输入,且数值分别为11 12 110)...
2019-11-07 17:34:58
4533
2
原创 python中的异常处理
try:<statements> #运行try语句块,并试图捕获异常except <name1>:<statements> #如果name1异常发现,那么执行该语句块。except (name2, name3):<statements> #如果元组内的任意异常发生,那么捕获它except <name4>...
2019-10-05 23:50:33
125
原创 python连接mysql
navicat中连接数据库成功了,我在Pycharm中连接数据库时一直出现Can't connect to MySQL server on localhostimport pymysql# 打开数据库连接# 注意password的密码是你刚刚设置的,port=3306是MySql默认的端口号db = pymysql.connect(host='localhos...
2019-10-04 11:02:08
184
原创 pip is configured with locations that require TLS/SSL, however the ssl module in python is not avail
windows下使用Anaconda出现pip is configured with locations that require TLS/SSL, however the ssl module in python is not availble的解决方法:在环境变量path下增加这三项:(这里我的Anaconda安装在了C:\User\Administrator下,根据具体情况进行改动)...
2019-10-03 20:07:25
525
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅