题解 | #判断布尔值#
判断布尔值
https://www.nowcoder.com/practice/b8c8a1c5f57b4724a1cbc12eb50378a5
temp = bool(int(input()))
if temp:
print("Hello World!")
else:
print("Erros!")
# 注意bool('0'), 字符串无论是'0'或'1'都为True
# print(bool('0'))
#Python#
if temp:
print("Hello World!")
else:
print("Erros!")
# 注意bool('0'), 字符串无论是'0'或'1'都为True
# print(bool('0'))
#Python#