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

牛牛的小数输出

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

import sys

n=float(input())
#print(f'{n:.2f}')
print('%.2f' % n)
#print('{:.2f}'.format(n))

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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