AttributeError: module 'threading' has no attribute 'Thread'

2019-05-18 14:24:00 xhs
运行报错 AttributeError: module 'threading' has no attribute 'Thread' 原来是我的文件名叫做threading.py,所以import的就是本文件 ...

python笔记

2018-11-07 22:03:00 xhs
内容来源: 廖雪峰 Python教程 #查看python包版本 pip freeze 如果'本身也是一个字符,那就可以用""括起来,比如"I'm OK"包含的字符是I,',m,空格,O,K这6个字符。 ...

django总结

2019-07-02 17:16:40 xhs
1.7版本以上重新创建表 https://blog.csdn.net/hanglinux/article/details/75645756 { "detail": "'staticfiles' is n...

centos7安装Python3

2019-05-18 13:46:57 xhs
wget下载最新的Python包,比如3.7 解压 安装依赖 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-de...

centos7安装django

2019-06-28 15:17:56 xhs
yum install python36 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python36 get-pip.py ...

监听文件变化

2019-06-27 22:25:45 xhs
import pyinotify wm = pyinotify.WatchManager() notifier = pyinotify.Notifier(wm) wm.add_watch('/tmp/'...

python调系统命令总结

2019-06-21 20:18:47 xhs
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such fi 如果目前...

windows安装pip

2019-08-01 09:54:07 xhs
下载pip https://pypi.org/project/pip/#files https://files.pythonhosted.org/packages/8b/8a/1b2aadd922db1afe...

yum安装pip和fabric

2019-07-15 21:22:39 xhs
yum -y install epel-release yum -y install python-pip pip install --upgrade pip pip install fabri...

centos6.5安装python2.7

2019-08-06 14:18:14 xhs
python --version yum install gcc gcc-c++ -y yum install openssl-devel -y yum install zlib zlib-devel -y...