Python 获取变量名 11 12 月, 2024 作者: 分类: Python from varname import nameof var = 123 name = nameof(var) # name 的值为 'var' 成功获取到变量var的名字 Python时间戳转化时间格式 下一篇