import pyorient
# create connection
client = pyorient.OrientDB("localhost", 2424)
# open databse
client.db_open( "Test", "admin", "admin" )
requiredObj = client.command(' select from chat where app_cat=appCategory and module=module and type=type and prob_cat=problemCategory ')
print requiredObj[0]
输出:
^{pr2}$这里我想使用python重新绑定out_': <pyorient.otypes.OrientBinaryObject object>
。当我尝试用这段代码来借记对象时,这个错误就来了
print requiredObj[0].out_[0]
TypeError: 'OrientBinaryObject' object does not support indexing
你可以利用
希望有帮助
相关问题 更多 >
编程相关推荐