小编KTr*_*ran的帖子

如何在python中打印C格式

一个python新手问题:

我想用带有参数列表的 c 格式在 python 中打印:

agrs = [1,2,3,"hello"]
string = "This is a test %d, %d, %d, %s"
Run Code Online (Sandbox Code Playgroud)

如何使用 python 打印:

这是一个测试 1, 2, 3, 你好

谢谢。

python printf string-formatting

1
推荐指数
2
解决办法
6108
查看次数

标签 统计

printf ×1

python ×1

string-formatting ×1