风雪行
风雪行
全部文章
分类
题解(11)
归档
标签
去牛客网
登录
/
注册
风雪行的博客
全部文章
(共1篇)
题解 | #判断布尔值#
temp = bool(int(input())) if temp: print("Hello World!") else: print("Erros!") # 注意bool('0'), 字符串无论是'0'或'1'都为True # print(...
Python2
Python3
2022-07-30
41
892