True和数字相加的结果

num = 5
print(num + True)
# 其结果为6

  

猜你喜欢

转载自www.cnblogs.com/chengbo2130/p/10235943.html