摘要:
汇编语言 设有一个数组存放学生的成绩(0100),编制一个子程序统计059分,60~69分, 70~79分, 80~89分,90~100分的人数,并分别存放到scoreE, scoreD, scoreC, scoreB, scoreA单元中,编写一~个主程序与之配合使用。 源程序: stack se 阅读全文
摘要:
源程序: height = 80s = height # 球经过的全部路径长度t = str(height) + "+"for i in range(9): s = s + height t = t + str(height) + "+" height = height / 2print(t.str 阅读全文
摘要:
源程序: m = 1000n = 1000while True: if m % 7 == 3 and m % 5 == 2 and m % 3 == 1: print(m) break if n % 7 == 3 and n % 5 == 2 and n % 3 == 1: print(n) bre 阅读全文
摘要:
源程序: day = 10while True: m = day flag = True for i in range(9): if m % 2 == 0: m = m - m//2 - 1 else: flag = False break if m == 1 and flag: break day 阅读全文
摘要:
源程序: print("请输入一串字符(包含大小写字母、数字和其他字符):")str1 = input()upp_num = 0low_num = 0digit = 0other = 0for i in str1: if "a" <= i <= "z": low_num += 1 elif "A" 阅读全文