📜  首先 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:11.078000             🧑  作者: Mango

代码示例2
def print_all_numbers_then_all_pair_sums(numbers):
    print("these are the numbers:")
    for number in numbers:
        print(number)

    print("and these are their sums:")
    for first_number in numbers:
        for second_number in numbers:
            print(first_number + second_number)