python中输出变量

 

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

 

posted @ 2021-02-24 22:04  小鲨鱼2018  阅读(340)  评论(0编辑  收藏  举报