python 列表转字符串

num_list = []
for i in range(1,16):
if i == 13:
continue
else:
num_list.append(str(i))

str_num = ' '.join(num_list)

posted @ 2022-08-31 00:17  遇事不决,量子力学  阅读(60)  评论(0编辑  收藏  举报