python3初始化报错AttributeError: 'module' object has no attribute 'init'
代码如下
import leancloud
leancloud.init("**************************", "***************************")
TestObject = leancloud.Object.extend('TestObject')
test_object = TestObject()
test_object.set('words', "Hello World!")
test_object.save()
如果在命令行一行一行运行上面代码是ok的,但是如果把上面的写进.py文件里,就会报错