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

牛牛的小数输出

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

num_input = float(input())
num_output=f'{num_input:.2f}'
print(num_output)

详解:https://realpython.com/python-f-strings/

全部评论

相关推荐

驼瑞驰_招募评论官版...:这是要去亚马逊雨林守夜吗?
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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