2024-06-16 15:43:44 发布
网友
我有以下代码
nsum = 1+3+4 print("your total Calorie count is",nsum,".")
当我使用python3.6运行scrip时
它打印出your total Calorie count is 8 .
your total Calorie count is 8 .
your total Calorie count is 8.
我该怎么办
nsum = 1+3+4 print("your total Calorie count is %d." % nsum)
有关格式化的详细信息,请参见this page
有关格式化的详细信息,请参见this page
相关问题 更多 >
编程相关推荐