![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
yydsCF
这个作者很懒,什么都没留下…
展开
-
python 关于**kwargs的使用
在定义函数时,使用**kwargs可以传入多个参数,**kwargs只是个代词,例如 def fun(a, **kwargs): print "a is", a print "We expect kwargs 'b' and 'c' in this function" print "b is", kwargs['b'] print "c is", kwargs['c'] fun(1, b=3, c=5) 会输出 a is 1 We exp原创 2021-03-12 15:57:35 · 551 阅读 · 0 评论 -
python更换国内pip源
调出CMD,直接输入 pip config set global.index-https://pypi.tuna.tsinghua.edu.cn/simple 在Windows下可以用这条命令直接更改到清华的pip源原创 2021-01-03 16:59:48 · 122 阅读 · 0 评论 -
python与mysql-connector连接问题:authentication plugin ‘calling_sha2_password‘ is not supported.
python与mysql-connector连接问题:authentication plugin ‘calling_sha2_password’ is not supported. 初学者,进入mysql,或者在MySQL Workbench上运行这一句 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1234'; 1234是你的MySQL数据库密码,运行完毕后,在Pycharm中加入这一句 auth_plug原创 2021-01-03 10:04:26 · 306 阅读 · 1 评论