
python
sun007700
这个作者很懒,什么都没留下…
展开
-
Python:普通成员函数、类成员函数、静态函数
Python:普通成员函数、类成员函数、静态函数Python:普通成员函数、类成员函数、静态函数原创 2022-02-11 15:10:36 · 449 阅读 · 0 评论 -
http_send_response() takes 3 positional arguments but 4 were given
Resquest.http_send_response(self, action, status)改成如下,即可,去掉selfResquest.http_send_response(action, status)原创 2022-02-10 10:10:34 · 1207 阅读 · 0 评论 -
python修改nginx配置文件
python修改nginx配置文件_一个修改nginx.conf配置文件的开源工具_潜水小透明的博客-优快云博客原创 2022-01-12 17:37:01 · 2063 阅读 · 0 评论 -
python写入log日志文件
Python + logging 输出到屏幕,将log日志写入文件 - nancy05 - 博客园import loggingfrom logging import handlersclass Logger(object): level_relations = { 'debug':logging.DEBUG, 'info':logging.INFO, 'warning':logging.WARNING, 'error..原创 2021-10-28 16:57:40 · 1713 阅读 · 1 评论 -
pyinstaller 报错时ModuleNotFoundError: No module named ‘numpy‘
运行ok,但是打包后执行报错.删除,重新打包.rm build dist __pycache__/ *.spec -rfpyinstaller -F xxx.py原创 2021-10-14 18:03:41 · 566 阅读 · 0 评论 -
paramiko“python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-1bmx98iz/cryptography/
pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案_Dongdong Bai's Blogs-优快云博客# python3 -m pip install --upgrade --force pip# pip install setuptools==33.1.1# pip3 install paramiko...原创 2021-10-14 15:19:01 · 174 阅读 · 0 评论 -
python linux Failed building wheel for pyinstaller
pyinstaller安装失败的解决过程-优快云论坛或者换版本pip3 install pyinstaller==4.1原创 2021-10-14 13:23:05 · 865 阅读 · 0 评论 -
python3.8.so.1.0‘: dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29‘ not found
Linux下打包Python程序无法在别人系统上运行libpython3.6m.so.1.0‘: dlopen: /lib64/libc.so.6: version,GLIBC_2.25‘ not_wangziyang777的博客-优快云博客[3513] Error loading Python lib '/tmp/_MEIwj9Y1X/libpython3.6m.so.1.0': dlopen: /lib64/libc.so.6: version `GLIBC_2.25' not found (原创 2021-10-14 11:03:12 · 5444 阅读 · 2 评论 -
pyinstaller linux系统下打包python源文件 二进制
pyinstaller linux系统下打包python源文件 - who_care - 博客园原创 2021-10-14 10:38:07 · 735 阅读 · 0 评论 -
python http server handle json
python http server handle json - Sawyer Ford - 博客园Python实现简单的HttpServer - 技术即艺术 - 博客园原创 2021-10-12 16:17:23 · 320 阅读 · 0 评论 -
多语言相互调用
go执行python/shell脚本 | 航行学园一、背景项目的后台是golang, 但是一个子模块是python写好了的,为了能够快速使用上,打算用golang调用python。但是从长远的角度来看,在服务内部,跨语言,跨进程,最好使用RPC的方式。 本文主要讲解如何通过go来调用python脚本或者本地shell脚本,并获取脚本的输出结果。二、用法执行python有两种常见的方法:一种是直接执行python,一种是通过执行shell脚本来执行python。2.1 直接执行python原创 2021-10-12 14:08:44 · 280 阅读 · 0 评论 -
python使用scp, ssh sudo等
如何在python中使用scp? - 问答 - 云+社区 - 腾讯云Python SCPClient.put示例,scp.SCPClient.put Python示例 - HotExamples怎样用python实现scp - 长空小鹰 - 博客园python使用paramiko和SCPClient进行linux远程控制和上传和下载文件_知识小屋-优快云博客import scpfrom scp import SCPClientdef createSSHClient(server..原创 2021-10-09 13:45:42 · 706 阅读 · 0 评论 -
Python实现shell的cat命令
bash - Python equivalent for write in file like in shell - Stack Overflow long_string = """First Second Third {variable}""".format(variable = 42, ) print(long_string) myFile = open("/tmp/testfile", "w") myFile.write(long_原创 2021-10-09 09:44:12 · 581 阅读 · 0 评论 -
python基础,格式化输出,字典
Python 函数中,参数是传值,还是传引用?Python 函数中,参数是传值,还是传引用? - 陨落&新生 - 博客园原创 2021-10-08 13:41:29 · 102 阅读 · 0 评论 -
Python ssh 远程执行shell命令
Python ssh 远程执行shell命令_百武的博客-优快云博客_python ssh 远程执行命令原创 2021-09-30 17:15:14 · 304 阅读 · 0 评论 -
vscode - 设置 Python 版本
vscode - 设置 Python 版本_无聊的豆奶-优快云博客原创 2021-09-30 16:06:13 · 1863 阅读 · 0 评论 -
ubuntu安装python
Ubuntu 安装Python Pip_linghugoolge的博客-优快云博客_ubuntu安装python-pipapt-get install python2.7 python2.7-dev原创 2021-09-29 19:48:20 · 442 阅读 · 0 评论 -
python3中的Struct模块打包和解包C语言中的结构体,及二进制数据的处理
https://blog.youkuaiyun.com/chenmozhe22/article/details/90140458原创 2020-03-02 23:22:36 · 421 阅读 · 0 评论 -
Python之协程,线程,线程优先级
Python之协程https://www.cnblogs.com/russellyoung/p/python-zhi-xie-cheng.html原创 2020-02-03 19:46:28 · 616 阅读 · 0 评论 -
cannot import name 'monkey' from 'gevent'
报这个错误的主要原因是因为,自己的程序名字也叫gevent.py ,重名了,改个名字就可以了原创 2020-01-14 20:30:25 · 954 阅读 · 0 评论 -
Python3使用 http
Python3 异步--aiohttphttps://blog.youkuaiyun.com/weixin_34175509/article/details/92910097原创 2019-11-27 00:36:33 · 209 阅读 · 0 评论 -
flask相关代码
Flask实现登录功能【附完整Demohttps://blog.youkuaiyun.com/weixin_36380516/article/details/80301478python3之flask入门Demohttps://blog.youkuaiyun.com/qq_40374604/article/details/83271003Flask实现图片的上传、下载及展示https://b...原创 2019-11-14 15:37:40 · 122 阅读 · 0 评论 -
python写文件以及全局变量int类型的使用注意
参考链接http://blog.chinaunix.net/uid-12014716-id-3957561.htmlhttps://blog.youkuaiyun.com/u011280600/article/details/89133319https://huiqinbo.iteye.com/blog/2192888这两天需要用python写文件。总结如下:注意,调用writeli...原创 2019-07-06 14:48:18 · 2652 阅读 · 0 评论 -
ctypes 通过 CFUNCTYPE 支持回调函数
参考链接https://www.cnblogs.com/gaowengang/p/7919219.htmlhttps://blog.youkuaiyun.com/m549393829/article/details/80286303typedef int (*Func)(int*, int*);# CFUNCTYPE(restype, *argtypes, **kw)CmpFuncT...原创 2019-07-06 10:27:49 · 7657 阅读 · 3 评论 -
CentOS7安装Python3.7兼容python2
参考链接https://blog.youkuaiyun.com/six66hao/article/details/80985641https://blog.51cto.com/leyex/2163465AnacondaAnaconda 是一个基于 Python 的数据处理和科学计算平台,它已经内置了许多非常有用的第三方库,装上Anaconda,就相当于把 Python 和一些如 Numpy、...转载 2019-07-01 10:20:50 · 279 阅读 · 0 评论 -
python3 安装使用(windows)
安装参考https://blog.youkuaiyun.com/sun007700/article/details/94381335使用pip install 安装路径在D:\Python37\Lib>pip3 install face_recognition...原创 2019-06-29 20:00:11 · 220 阅读 · 1 评论 -
修改pip源
指定pip源安装pip install face_recognition -i https://pypi.doubanio.com/simple参考链接https://blog.youkuaiyun.com/xyf_1995/article/details/81323860Windows下修改pip源https://blog.youkuaiyun.com/weixin_37860660/a...原创 2019-07-02 09:59:57 · 476 阅读 · 0 评论