Python如何实现将user类的ID对应绑定到其他个类中的对应行
query = leancloud.Query('_User')
query.equal_to('mobilePhoneVerified', False) # 查询条件
users = query.find() # 用户列表
id_list = [user.id for user in users] # 用户 objectId 列表
username_list = [user.get('username') for user in users]
id_list1=[str(q) for q in id_list]
dict_all = dict(zip(username_list, id_list))
Course = leancloud.Object.extend('Course_Data_Structure')
course = Course()
query_structure=leancloud.Query('Course_Data_Structure')
for p in dict_all:
query_structure.equal_to('xuehao',p)
course.set('self',dict_all[p])#这里的self是一个指向_User的pointer对象
course.save()
print("Done!")
报错:Invalid value type for field 'self',value '"62329842c62513794f8e0703"',expect type is {:type "Pointer", :className "User", :readonly false},but it is '{:type "String"}'