Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将字符串列表转换为变量序列。例如,我有一个列表 my_list=["var1","var2","var3"],我想创建一行var1,var2,var3 = map(str.strip, line.split())(因为我的列表和我的变量行当然是可变的)。
my_list=["var1","var2","var3"]
var1,var2,var3 = map(str.strip, line.split())
请你能给我一些线索吗?