如何仅输出整数?

2024-04-26 00:08:49 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的密码

list = [1,2,3]
for i in list:
    print(i)

这是输出

1
2
3

我在找什么

1, 2, 3