A. Numbers Joke time limit per test:2 seconds memory limit per test:64 megabytes input:standard input output:standard output Input The input contains a single integer a (1 ≤ a ≤ 30). Output Output a single integer. Example Input 3 Output 27 题目链接:ht
在if分支判断语句里的条件判断语句不一定就是一个表达式,可以是多个(布尔)表达式的组合关系运算,这里如何使用更多的关系表达式构建出一个比较复杂的条件判断呢?这里需要再了解一下逻辑运算的基础知识.逻辑关系运算有以下几种运算符. 下面是逻辑与实例,通过例子我们了解一下and.or等逻辑运算操作机制. def if_check(): global x x = 79 print(" in if_check x = ", x) if x >= 60 and x < 70: print