官术网_书友最值得收藏!

The if statement

print (1 is 3)

The output of the previous code is as follows:

False

The other thing we can do is use is, which is sort of the same thing as equal. It's a more Python-ish representation of equality, so 1 == 3 is the same thing as 1 is 3, but this is considered the more Pythonic way of doing it. So 1 is 3 comes back as False because 1 is not 3.

主站蜘蛛池模板: 泗水县| 海宁市| 固阳县| 霍山县| 通河县| 南川市| 南和县| 定南县| 普定县| 巴林左旗| 丹东市| 商河县| 区。| 阳城县| 运城市| 余姚市| 邵阳县| 姚安县| 景德镇市| 青州市| 莎车县| 江华| 赤水市| 辽宁省| 黎城县| 迁西县| 拜城县| 新巴尔虎右旗| 洪江市| 芷江| 宁远县| 新干县| 鄯善县| 盘山县| 盐边县| 南投市| 长汀县| 望城县| 兴安盟| 溧阳市| 安远县|