源代码
#Use "+" to always indicate if the number is positive or negative: txt = "The temperature is between {:+} and {:+} degrees celsius." print(txt.format(-3, 7))
运行结果