编程初学练习
风灵玉秀
Python初学者,目前开始学习数据分析和挖掘,尝试编程学习。
展开
-
2020-11-17
#循环输入并计算班级成绩:score = []total = inscore = 0while(inscore !=-1):inscore = int(input("请输入学生的成绩: "))score.append(inscore)print(score)print(“共有 %d 位学生” % (len(score) - 1))for i in range(0, len(score)-1):total +=score[i]average = total / (len(score) -1原创 2020-11-17 16:24:54 · 132 阅读 · 0 评论 -
Python编程——九九乘法表
使用for循环输出九九乘法表:输出结果如图:原创 2020-11-17 15:37:22 · 1403 阅读 · 0 评论