我正在写一堂课:
from bioservices import KEGGParser
class Retrieve_Data():
def __init__(self):
def hugo2kegg(self,gene_name,organism):
s=KEGGParser()
kegg_gene_entry = s.get(organism+':'+gene_name)
return kegg_gene_entry
a = Retrieve_Data()
但是当我运行它时,我得到一个 NameError:
NameError: global name 'kegg_gene_entry' is not defined
有人能告诉我哪里出错了吗?