(1)输入一个3位数,从高开始输出他们每位数的数字
x = input()
y = eval(x)
z1 = (y//100)%10
z2 = ((y-z1*100)//10)%10
z3 = y-z1*100-z2*10
print(z1,'\n',z2,'\n',z3,sep='')
或者:
x = input()
print(x[0],'\n',x[1],'\n',x[2],sep='')
(2)输入x和y,输出x+y
x = input()
y = input()
x,y = int(x),int(y)
print(x+y)