end关键字 On 2023年7月8日By 去哪儿 end可以用于将结果输出到同一行,或者在输出的末尾添加不同的字符 a, b = 0, 1 while b < 1000: print(b, end=',') a, b = b, a+b