首页 > python 3.x数组的占位符是什么。

python 3.x数组的占位符是什么。

attr = [1,2,3,4]
print("数组是:"%(attr))
怎么样让数组和字符拼接输出啊?


%s

就好了

【热门文章】
【热门文章】