python 获取变量名的方法
G8bao7
2015-05-26 16:24:02
IT综合
转载
参考:
http://www.douban.com/group/topic/8563618/
a='abc'
b='def'
c='ghi'
t=a,b
for i in t:
if i == 'def':
for x, y in locals().items():
if i == y and x != 'i':
print x
python 递归遍历目录
Mysql 5.6 Limit 对ORDER BY的优化