相关疑难解决方法(0)

在Python中打印多个参数

这只是我的代码片段:

print("Total score for %s is %s  ", name, score)
Run Code Online (Sandbox Code Playgroud)

但我希望它打印出来:

"(姓名)总分为(得分)"

where name是列表中的变量,score是一个整数.这是Python 3.3,如果这有帮助的话.

python printing arguments python-3.x

283
推荐指数
10
解决办法
84万
查看次数

标签 统计

arguments ×1

printing ×1

python ×1

python-3.x ×1