Security_Code/COMMON_CODE半成品-不再更新/传入两个数字获取百分比.py

5 lines
72 B
Python

a = 6
b = 35
c = str(format(float(a*100)/float(b),'.2f')) + '%'
print c