题解 | #牛牛的小数输出#

牛牛的小数输出

https://www.nowcoder.com/practice/0454d1bd28cd499ba06afdabe0fb9caf

num1 = float(input())
print("{0:.2f}".format(num1))

python的格式化输出:https://www.runoob.com/python/att-string-format.html

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-15 17:32
点赞 评论 收藏
分享
写不来代码的小黑:这么小的城市能有做it的公司也不容易
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务