![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
记录报错
Rebirth-LSS
度过了一段自己都能感动的日子,才能遇见那个最好的自己
展开
-
(1406, “Data too long for column ‘password‘ at row 1“)
#捕捉了一下这个异常 try: UserProfile.objects.create(username=username, nickname=username, password = p_m.hexdigest(), email=emai原创 2021-12-28 11:40:07 · 349 阅读 · 0 评论 -
No handles with labels found to put in legend.
No handles with labels found to put in legend.import numpy as npimport matplotlib.pyplot as mpx = np.linspace(0,np.pi*2,1000)sinx = np.sin(x)cosx = np.cos(x)/2names= ['0', r'$\frac{\pi}{2}$', r'$\pi$', r'$\frac{\pi}{2}$', r'${2}\pi$']mp.xticks([0,原创 2021-12-02 09:30:29 · 136 阅读 · 0 评论 -
IndentationError: unexpected indent
IndentationError: unexpected indent原创 2021-11-14 21:08:14 · 354 阅读 · 0 评论 -
TabError: inconsistent use of tabs and spaces in indentation
TabError:在缩进中不一致地使用制表符和空格这个报错其实就是在说你的代码中空格的格式可能不一致,把代码缩进,那些空格都用相同的方法,tab都用tab,这个报错,可能在复制代码的时候经常会报这个错误...原创 2021-09-25 11:23:38 · 114 阅读 · 0 评论 -
报错:TypeError: hello() missing 1 required positional argument: ‘self‘ 原因
class A(object):#这个是将hello方法实例化了 def hello(self): print("这个有self") def hi(): print("这个没有self")A.hi()A.hello()下面是运行的结果TypeError: hello() missing 1 required positional argument: 'self'这个没有selfA.hi()这样直接调用是会报错的,必须实例化原创 2021-05-07 11:22:58 · 2900 阅读 · 0 评论