标签:max color des put class res desc 运算 运算符
1 a=5; 2 b=2; 3 print(a+b);#result:7 desc:加 4 print(a-b);#result:3 desc:减 5 print(a*b);#result:10 desc:乘 6 print(b**10);#result:1024 desc:幂 7 print(a/b);#result:2.5 desc:除 8 print(a//b);#result:2 desc:取整除 9 print(a%b);#result:1 desc:取余 10 11 print(not True);#false desc:对应java中 ! 12 print(True and False);#false desc:对应java中 && 13 print(True or False);#true desc:对应java中 ||
1 num_1 = int(input()); 2 num_2 = int(input()); 3 num_3 = int(input()); 4 max_num = 0; 5 if num_1 > num_2: 6 max_num = num_1; 7 else: 8 max_num = num_2; 9 if max_num < num_3: 10 max_num = num_3 11 print(max_num);
标签:max color des put class res desc 运算 运算符
原文地址:https://www.cnblogs.com/zze46/p/9501044.html