摘要:
修改列表的元素时,可以使用for 循环结合range n = int(input()) list_b = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for i in range(len(list_b)): for y in range(len(list_b[i])): li 阅读全文
摘要:
num_list = []for i in range(1,16): if i == 13: continue else: num_list.append(str(i))str_num = ' '.join(num_list) 阅读全文