
python报错集锦
Yohance0_0
好好学习,做一个乖孩子
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python调用语音模块报错TypeError:NoneType takes no arguments
1.在python3.6.5目录中找到pythonwin文件夹eg:E:\Python\py16\Lib\site-packages\pythonwin2.在pythonwin文件夹下找到Pythonwin.exe文件3.双击Pythonwin.exe运行4.然后选择工具Tools/COM Makepy utility5.然后选择Microsoft Speech ObjectLib...原创 2019-03-09 11:13:58 · 2094 阅读 · 2 评论 -
python3报错urllib.error.URLError
查看自己的url是不是以http://开头即可此时去掉Post即可解决问题原创 2019-03-04 10:58:52 · 644 阅读 · 0 评论 -
python报错:“TypeError: func() takes 0 positional arguments but 1 was given”
import tkinterfrom tkinter import ttkwin = tkinter.Tk()win.title("sunk")win.geometry("400x400+200+20")cv = tkinter.StringVar()com = ttk.Combobox(win, )com.pack()# 设置下拉数据com[&quot原创 2019-03-07 09:49:14 · 5233 阅读 · 0 评论 -
py3报错UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 1134: invalid start byte
import urllib.requestimport urllib.parseurl = "https://www.youkuaiyun.com/"headers = {# "User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 10.0; WOW64; Trident/7.0; LCTE)", "User-Agent": ...原创 2019-04-04 09:37:07 · 1000 阅读 · 0 评论 -
python报错“TypeError: slice indices must be integers or None or have an __index__ method”
源代码import cv2import randomimg = cv2.imread("lena.jpg")width, height, depth = img.shapeimg_width_box = width * 0.2img_height_box = height * 0.2for _ in range(9): start_pointX = random.unifo...原创 2019-04-18 11:12:08 · 11811 阅读 · 1 评论