Python学习
多喝水早点睡|
这个作者很懒,什么都没留下…
展开
-
Pyhton打印行号提示Cannot find reference ‘_getframe‘ in ‘__init__.pyi‘
Python打印行号原创 2024-01-17 18:03:51 · 414 阅读 · 0 评论 -
Linux端口号放开
Linux Flask设置host为0.0.0.0后仍不可访问公网地址转载 2022-05-10 13:29:59 · 296 阅读 · 0 评论 -
Jenkins执行Python代码时提示‘taskkill‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
Jenkins中将Windows添加为了节点,构建时提示如下问题:Python代码中包含了netstat & taskkill等命令,Jenkins运行时提示’taskkill’ 不是内部或外部命令,也不是可运行的程序或批处理文件。本地调试的时候是没问题的,切换到代码执行目录去运行也是OK的。尝试将电脑的path加到节点的系统变量,然并卵。最后直接将工作节点的工作目录替换掉就没问题了,心态炸了...原创 2021-10-21 17:04:19 · 979 阅读 · 0 评论 -
使用pip命令时报错“ValueError: check_hostname requires server_hostname“、“requests.exceptions.SSLError: HTTP“
1、找了半天,原来是电脑开了代理 / 启用了二抓包工具原创 2021-05-14 10:59:25 · 1647 阅读 · 5 评论 -
Python执行Dos命令
# -*- coding: utf-8 -*-# 执行dos命令import osclass DosCmd: def excute_cmd_result(self, command): result_list = [] # popen方式 result = os.popen(command).readlines() for i in result: if i == '\n':原创 2021-04-23 17:43:05 · 740 阅读 · 2 评论 -
Python的openpyxl使用
#coding=utf-8import openpyxlclass ReadExcel: def __init__(self, path=None): try: if path != None: # 打开已有的Excel self.wb = openpyxl.load_workbook(path) return self.wb sel原创 2021-04-23 17:41:41 · 125 阅读 · 0 评论 -
Pyinstaller打包时提示Unable to open icon file **.ico
转换图片时选择格式16*16转换地址:https://www.easyicon.net/covert/原创 2020-11-01 19:50:53 · 3462 阅读 · 0 评论 -
python关于error: invalid command ‘bdist_wheel报错的解决
执行pip3 install wheel转载 2020-11-01 19:23:31 · 3106 阅读 · 0 评论 -
使用pip命令提示超时
使用pip命令时提示超时会提示超时可以使用-i参数加https://pypi.douban.com/simple使用豆瓣的镜像地址原创 2020-10-30 21:49:03 · 141 阅读 · 0 评论