Very basic Python question (strings, formats and escapes)

后端 未结 10 2075
别那么骄傲
别那么骄傲 2021-02-06 10:59

I am starting to learn Python with an online guide, and I just did an exercise that required me to write this script:

from sys import argv

script, filename = ar         


        
10条回答
  •  礼貌的吻别
    2021-02-06 11:55

    For the purposes of "that specific study drill" question/problem in that specific guide, i believe the author would like...

    target.write("%s\n%s\n%s\n" % (line1, line2, line3))
    

    Although, Dave Webb certainly gets many many browny points for being thorough plus educational value too.

提交回复
热议问题