当使用类继承时,Python3在super() argument 1 must be type, not WSGIRequest中失败了。
我在Django 2.1.4和Python3.7.0上。我尝试不使用静态方法,检查它是否真的是Python3(因为这个问题在Python2上很常见),在我试图从"object“继承的超类上,同时也从Django提供的"View”继承(因为这在Python2中解决了这是一个超类,它继承了Django "V
我知道,可能没有任何理由使用这种方法来创建变量函数,但是在语义上是否有可能定义一些这样的东西呢?例如,它可以被称为sum(1)(2)(3)();。y) return 0; };但是,当调用时,这会给出TypeError: string is not a function是什么使它返回一个字符串?当我更仔细地检查它时,它看起来像是将函数的代码作为字符串返回,这对我来说毫无意义。
line 187, in defaulterrorhandlerpymysql.err.Error: (<class 'TypeError'>, TypeError("'int' does not support the buffer interface",))
我已经搜索过了,但我不明白为什么这一切突然改变了。Windows Server 2008上的Python版本为3.3.0。我真的