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())
手がかりをいくつか教えてください。