python中的動態變量

def make_name(): names = locals() for i in range(1, 10): names['t%s' % i] = i print names['t%s' % i]    轉載於:https://www.cnblogs.com/LarryGen/p/6102546.htmlhtml
相關文章
相關標籤/搜索