在 init 方法中无法识别我的@property。其他吸气剂是普通吸气剂,不包括数据库调用和验证。
@property
def project_id(self):
try:
self.__conn_cursor.execute(self.project_id_query)
response = self.__conn_cursor.fetchone()
self.__project_id = response[0]
return self.__project_id
except Exception as e:
print(e)