while True:
try:
l = list(map(int, input().split()))
print(sum(l))
except:
break
while True:
try:
l = list(map(int, input().split()))
if len(l) != 1:
print(sum(i))
else:
pass
except:
break
while True:
try:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
print(a+b)
except:
break
while True:
try:
l = list(map(int, input().split()))
if l[0] == 0:
break
else:
print(sum(l))
except:
break
while True:
try:
n = int(input())
for i in range(n):
l = list(map(int, input().split()))
print(sum(nums[1:]))
except:
break
while True:
try:
l = list(map(int, input().split()))
print(sum(l[1:]))
except:
break
while True:
try:
l = list(map(int, input().strip().split()))
print(sum(nums))
except:
break
while True:
try:
n = int(input())
l = list(map(str, input().strip().split()))
print(" ".join(l))
except:
break
while True:
try:
l = list(map(str, input().strip().split()))
l.sort()
print(" ".join(l))
except:
break
while True:
try:
l = list(map(str, input().strip().split()))
l.sort()
print(".".join(l))
except:
break
其实很简单:
list
map
sort
join
input
就是上面几个函数用法哦,记住重点就能写出来。