随笔分类 -  python

摘要:error: command '/usr/bin/gcc' failed with exit code 1 error: #error This file requires compiler and library support for the ISO C++ 2011 standard. Thi 阅读全文
posted @ 2022-12-02 11:10 QQQnull 阅读(46) 评论(0) 推荐(0)
摘要:https://docs.python.org/zh-cn/3.7/library/typing.html https://www.python.org/dev/peps/pep-0483/ https://www.python.org/dev/peps/pep-0484/ 阅读全文
posted @ 2021-02-03 09:20 QQQnull 阅读(100) 评论(0) 推荐(0)
摘要:_bz2 build Failed 在使用从源码构建的bzip2时,若出现如下错误 building '_bz2' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 阅读全文
posted @ 2021-01-28 15:44 QQQnull 阅读(353) 评论(0) 推荐(0)
摘要:openstackclient启动顺序 在openstackclient.shell:main openstackclient.shell.OpenStackShell.init() osc_lib.shell.OpenStackShell.__init__() cliff.app.App.__in 阅读全文
posted @ 2020-12-08 09:51 QQQnull 阅读(91) 评论(0) 推荐(0)
摘要:在/etc/ssh/ssh_config中添加远程服务器支持的cipher 如Ciphers aes128-cbc,3des-cbc,aes128-ctr 连接时指定ssh配置文件 from pexpect import pxssh client = pxssh.pxssh() clinet.log 阅读全文
posted @ 2020-03-12 17:45 QQQnull 阅读(253) 评论(0) 推荐(0)
摘要:yum install readline readline-devel readline-static -y yum install openssl openssl-devel openssl-static -y yum install sqlite-devel -y yum install bzi 阅读全文
posted @ 2020-03-05 15:05 QQQnull 阅读(445) 评论(0) 推荐(0)
摘要:The following is a list of all the format codes that the C standard (1989 version) requires, and these work on all platforms with a standard C impleme 阅读全文
posted @ 2019-04-17 11:30 QQQnull 阅读(1377) 评论(0) 推荐(0)
摘要:原理 flask-login使用的是客户端侧的session来存储用户的登录信息,在验证用户的登录状态时通过调用load_user(userid)用user的id来获得user对象,当通过id无法找到对应的user时即判定用户未登录。我们可以通过一个token来替换这个id,改写user的get_i 阅读全文
posted @ 2018-11-23 10:39 QQQnull 阅读(992) 评论(0) 推荐(0)
摘要:转化时间戳 time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(int(data["starttime"]))) 多线程queue docstring https://www.datacamp.com/community/tutorials/docstr 阅读全文
posted @ 2018-11-02 12:40 QQQnull 阅读(154) 评论(0) 推荐(0)
摘要:安装unixODBC 使用pyodbc需要Linux上安装unixODBC 可使用yum或apt安装unixODBC-devel包 编译安装:http://www.unixodbc.org/download.html 安装成功验证 安装连接驱动 unixodbc中没有自带连接sqlserver的驱动 阅读全文
posted @ 2018-08-28 13:15 QQQnull 阅读(1083) 评论(0) 推荐(0)