Discuss / Python / 原来评论区是用来交作业的。。那我也这么干把

原来评论区是用来交作业的。。那我也这么干把

Topic source

天朝子民

#1 Created at ... [Delete] [Delete and Lock User]

for x in L: print('hello,%s !' %x)

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

休电脑的

#3 Created at ... [Delete] [Delete and Lock User]

棒棒的%s!,琢磨了半天怎么把print('Hello,'name,'!')输出结果中,name和!中间的空格去掉,原来%2!就可以,醍醐灌顶。


  • 1

Reply