题解 | #为整数增加小数点#
为整数增加小数点
https://www.nowcoder.com/practice/ca4dd83cd8fb49c2a6d2b7cd182e3de7
import sys str = float(int(input())) #print(f'{str:.1f}') #print('{:.1f}'.format(str),type(str),sep='\n') #print('%.1f'%str,type(str),sep='\n') print(f'{str:.1f}',type(str),sep='\n') #print(type(str))