练习:
1:
源码:
n=int(input())
num=0
sum=0
for i in range(n):
dic=eval(input())
for j in dic:
temp=dic[j]
for key in temp:
num+=1
sum+=temp[key]
print("{:d} {:d} {:d}".format(n,num,sum))
2:
s = list(input().split())
t = s[::-1]
print(''.join(t))
print(s)
print(*t)