题解 | 复读机
复读机
https://www.nowcoder.com/practice/9d381551b6ab40c4b5c3c8d60fe4066e?tpId=383&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj
a = int(input())
if -10**9 <= a <= 10**9: #对整数a的大小进行范围判断
print(a)
else:
print("a超出范围")
b = int(input()) #对整数b的大小进行范围判断
if -10**18 <= b <= 10**18:
print(b)
else:
print("b超出范围")
c = float(input())
print(format(c,".1f")) #控制浮点数c的小数点位
d = str(input())
print(d)
e = str(input())
e = e.replace("\n","").replace(" ","") #删除字符串e中的换行符和空格
print(e)