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

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.

主站蜘蛛池模板: 金堂县| 天长市| 福安市| 泰安市| 青河县| 深圳市| 阜阳市| 东丽区| 大渡口区| 葫芦岛市| 巴南区| 息烽县| 甘南县| 平顶山市| 班玛县| 法库县| 峨山| 那曲县| 凌云县| 庆元县| 高碑店市| 岳西县| 枣强县| 汝州市| 肥西县| 湘潭市| 澳门| 尚志市| 肇州县| 乌拉特前旗| 阿拉善左旗| 措美县| 肃宁县| 来安县| 双鸭山市| 海淀区| 大悟县| 安顺市| 莱芜市| 阜新| 乐安县|