See More

# -*- coding:utf-8 -*- __author__ = 'gjw' __time__ = '2018/1/11 0011 上午 10:26' # 题目:809*??=800*??+9*?? 其中??代表的两位数, 809*??为四位数,8*??的结果为两位数,9*??的结果为3位数。求??代表的两位数,及809*??后的结果。 a = 809 for i in range(10, 100): b = i * a c = 8*i d = 9*i if (b >=1000 and b <= 10000 and c < 100 and d >= 100): print(str(b)+'= 800 * '+str(i)+' + 9 * '+str(i))