python笔记

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

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...

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

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

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/'...

django总结

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

python调系统命令总结

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

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...