Python 编程
python3代码如下:
f = eval(input())
if f < 3e9:
print("无线电波")
elif f < 3e12:
print("微波")
elif f < 4.3e14:
print("红外光")
elif f < 7.5e14:
print("可见光")
elif f < 3e17:
print("紫外光")
elif f < 3e19:
print("X射线")
else:
print("伽马射线")
运行结果如下:
符合样例输出,望采纳~