标签:world input print code span val div == eval
‘‘‘ a = eval(input()) s = "Hello World" l =len(s) if(a==0): print(s) elif(a>0): for i in range (0,l-1,2): print(s[i],s[i+1],sep=‘‘)#默认字符间有空格 print("d") else: for i in range(0,l): print(s[i]) ‘‘‘ a = input() for i in a: print(i,end=‘‘) 123 123 #默认换行 123 1 2 3
标签:world input print code span val div == eval
原文地址:https://www.cnblogs.com/tingtin/p/11616070.html