我需要这些行进入'for'循环以缩短整个模块。
peanut = codecs.open("butter.txt", mode="w")
duck = codecs.open("tape.txt", mode="w")
hair = codecs.open("style.txt", mode="w")
italy = codecs.open("spaghetti.txt", mode="w")
smile = codecs.open("cheese.txt", mode="w")
就像是:
for five_txt in peanut, duck, hair, italy, smile:
codecs.open()