热门标签
更多>
搜索结果
查询Tags标签: B0716PK6R2,共有 2条记录-
python 动态定义变量名并动态赋值
t = [‘B0716PK6R2’,‘B077X9J24C’,‘B01N2SBH4J’] count = 0 names = locals() for asin in t: count = count + 1 names[‘asin’ + str(count)] = asin print(asin1,asin2,asin3)# 输出结果: B0716PK6R2 B077X9J24C B01N2SBH4J
2021/10/15 11:14:20 人评论 次浏览 -
python 动态定义变量名并动态赋值
t = [‘B0716PK6R2’,‘B077X9J24C’,‘B01N2SBH4J’] count = 0 names = locals() for asin in t: count = count + 1 names[‘asin’ + str(count)] = asin print(asin1,asin2,asin3)# 输出结果: B0716PK6R2 B077X9J24C B01N2SBH4J
2021/10/15 11:14:20 人评论 次浏览