# 一边学编程，一边学语数外，用python排列10以内两数加法

python是一门编程语言

python是一种解决问题的编程工具

python中，使用英文构造程序结构；使用语文和拼音提示和显示结果；使用数学完成计算和逻辑过程。

【题目】：写出10以内两数相加所有的结果

1 + 1 = 2

1 + 2 = 3 2 + 2 = 4

1 + 3 = 4 2 + 3 = 5 3 + 3 = 6

1 + 4 = 5 2 + 4 = 6 3 + 4 = 7 4 + 4 = 8

1 + 5 = 6 2 + 5 = 7 3 + 5 = 8 4 + 5 = 9 5 + 5 = 10

1 + 6 = 7 2 + 6 = 8 3 + 6 = 9 4 + 6 = 10 5 + 6 = 11 6 + 6 = 12

1 + 7 = 8 2 + 7 = 9 3 + 7 = 10 4 + 7 = 11 5 + 7 = 12 6 + 7 = 13 7 + 7 = 14

1 + 8 = 9 2 + 8 = 10 3 + 8 = 11 4 + 8 = 12 5 + 8 = 13 6 + 8 = 14 7 + 8 = 15 8 + 8 = 16

1 + 9 = 10 2 + 9 = 11 3 + 9 = 12 4 + 9 = 13 5 + 9 = 14 6 + 9 = 15 7 + 9 = 16 8 + 9 = 17 9 + 9 = 18

【python编程】

numberTwo=1

while numberTwo

numberOne=1

while numberOne

print(numberOne,"+",numberTwo,"=",numberOne+numberTwo," ",end="")

numberOne=numberOne+1

print("")

numberTwo=numberTwo+1

【运行结果】

• 发表于:
• 原文链接https://kuaibao.qq.com/s/20181114A1NUB500?refer=cp_1026
• 腾讯「云+社区」是腾讯内容开放平台帐号（企鹅号）传播渠道之一，根据《腾讯内容开放平台服务协议》转载发布内容。
• 如有侵权，请联系 yunjia_community@tencent.com 删除。

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07

2021-12-07