题解 1480: 模拟计算器

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

用match case写

摘要:解题思路:注意事项:除法取的整除//参考代码:a,b,c=input().split()a=int(a)b=int(b)match c: case "+"……

python_模拟计算器

摘要:使用int()转换为整数类型,对应题目要求的整数运算a,b,c = input().strip().split() print(int(eval(a+c+b)))……

1480: 模拟计算器

摘要:解题思路:注意事项:参考代码:while True:    try:        a, b, c = map(str, input().split())        if (c == '+……