来卖猜和源 csdn yeoman92
aaa = '23asa'中盯
bbb = '兆颂kjljl2'
loc = locals()
def get_variable_name(variable):
print loc
for key in loc:
if loc[key] == variable:
return key
print get_variable_name(aaa)
print('a: {}'.format(a))
举例说明你的问题