f = open("Words.txt", "w")
for i in range(5):
f.write("s"* i)
f.write("\n")
f.close()
elice_utils.send_file('words.csv')
1 个解决方案
#1
0
Code:
f = open("Words.txt", "w")
for i in range(5):
f.write("s" * i)
f.write("\n")
f.close()
output:
s
ss
sss
ssss
Tell me if this is not your expected output. I will update it
告诉我这是不是你预期的输出。我会更新它
#1
0
Code:
f = open("Words.txt", "w")
for i in range(5):
f.write("s" * i)
f.write("\n")
f.close()
output:
s
ss
sss
ssss
Tell me if this is not your expected output. I will update it
告诉我这是不是你预期的输出。我会更新它