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

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.

主站蜘蛛池模板: 深泽县| 贞丰县| 湘乡市| 威海市| 九龙县| 甘南县| 内黄县| 洛川县| 维西| 潍坊市| 民县| 武城县| 金阳县| 阿瓦提县| 南安市| 昂仁县| 昂仁县| 西宁市| 保德县| 洮南市| 客服| 洮南市| 昌吉市| 汾阳市| 富平县| 罗定市| 舞阳县| 荃湾区| 延寿县| 佛教| 烟台市| 彭水| 扶沟县| 沈阳市| 扶绥县| 玉环县| 澄江县| 八宿县| 商河县| 高陵县| 准格尔旗|