首页 > 技术文章 > python中输出变量

liujiaxin2018 2021-02-24 22:04 原文

 

1、

>>> a = 100
>>> b = 200
>>> print(a,b)
100 200
>>> print("the score is:",a)
the score is: 100
>>> print(f"the score is:{a}")
the score is:100

 

推荐阅读