下划线将数字分开的数字是什么类型?

时间:2019-05-30 02:01:31

标签: python python-3.x

这些代码中的yes_votes类型是什么? 如果是字符串,为什么不输入'或'? 如果是整数,“ _”是什么意思?

yes_votes = 42_572_654
no_votes = 43_132_495
percentage = yes_votes / (yes_votes + no_votes)
'{:-9} YES votes  {:2.2%}'.format(yes_votes, percentage)


0 个答案:

没有答案