python
时光~来复去
路漫漫其修远兮,吾将上下而求索。——屈原
展开
-
Python中pip/pip3下载速度慢
一首先在当前用户目录下建立文件夹.pip,然后在文件夹中创建pip.conf文件,再将源地址加进去即可。mkdir ~/.pipvim ~/.pip/pip.conf然后将下面这两行复制进去就好了[global]index-url = https://mirrors.aliyun.com/pypi/simple#--------------------------------------------------------------------国内其他pip源清华:https://pyp原创 2020-05-12 12:10:30 · 190 阅读 · 0 评论 -
python笔记
条件判断语句#布尔型变量做and or not运算a = Trueb = Falseprint(‘a and b is {}’.format(a and b))print(“a or b is {}”.format(a or b))a and b is Falsea or b is True#非布尔型变量做and or not 运算;返回的是两个变量的一个,或者是值本身的内容a ...原创 2020-04-22 13:45:53 · 254 阅读 · 1 评论