kakajiejie

2022年7月22日

python无法import ssl和pip is configured with locations that require TLS/SSL问题解决方法

摘要: 问题描述:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 问题原因:openssl版本过低或者Python编译安装时需要加上参数--wi 阅读全文

posted @ 2022-07-22 17:28 kakajiejie 阅读(185) 评论(0) 推荐(0) 编辑

2021年4月15日

Python函数

摘要: #写函数,计算传入的字符串中【数字】,【字母】,【空格】及【其他】的个数,并返回结果def func(a): dic = {'数字':0,'字母':0,'空格':0,'其他':0} for i in a: if i.isdigit(): dic['数字'] += 1 elif i.isalpha() 阅读全文

posted @ 2021-04-15 17:22 kakajiejie 阅读(67) 评论(0) 推荐(0) 编辑

2021年4月1日

Python

摘要: #账号注册登录 username = input("用户名:")password = input("密码:")with open('list_info',mode='w+',encoding='utf-8') as file: file.write('{}\n{}'.format(username, 阅读全文

posted @ 2021-04-01 13:37 kakajiejie 阅读(41) 评论(0) 推荐(0) 编辑

导航