![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
kelikelikelikeli
死了死了,怎么还是这么菜啊
展开
-
python pip install一些第三方库的时候error
ERROR: Command errored out with exit status 1:command: /usr/bin/python2 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-Hhwh9G/install/setup.py’"’"’; file=’"’"’/tmp/pip-install-Hhwh9G/install/setup.py’"’"’;f=getattr(tokenize, ‘"’原创 2021-10-05 17:18:14 · 817 阅读 · 0 评论 -
Python 非阻塞地从输入流中读取数据
import sysimport time import select while True: time.sleep(2) print("hello") recv = "" if select.select([sys.stdin], [], [], 0.0)[0]: print("input:"+input()) if recv != "": print(recv)关键:select.select([sys.stdin],原创 2021-08-07 16:39:36 · 875 阅读 · 0 评论