这里写自定义目录标题 Python 获取变量名解决方法 Python 获取变量名 解决方法 from varname import nameof var = 123 name = nameof(var) #name will be 'var'