Discuss / Python / 练习

练习

Topic source

eleven_刁

#1 Created at ... [Delete] [Delete and Lock User]

s1 = 72 s2 = 85 r = (s2 - s1) / s1 * 100 print('小明成绩提升: %.1f%%' % r)

#* coding:utf-8 * core1=int(input("请输入小明同学去年的分数:",)) core2=int(input("请输入小明同学今年的分数:",)) percent=(core2-core1)/core1 print("小明成绩提升的百分点为:%.1f%%",%percent)


  • 1

Reply