Discuss / Python / 作业

作业

Topic source

Linux_Dream

#1 Created at ... [Delete] [Delete and Lock User]
#!/usr/bin/python
# -*- coding: utf-8  -*-

a = int(input("第一年成绩:"))
b = int(input("第二年成绩:"))

c = float((b-a)/a*100)
print ('增长百分点为:%.1f%%' %c)

这看上去像一个C


  • 1

Reply