Discuss / Python / 作业记录NO.1

作业记录NO.1

Topic source

HEIN音响

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

r = (s2-s1)/s1*100

print('%.1f%%' % r)

print(f"{r:.1f}%")

print("{:.1f}%".format(r))

print("{0:.1f}%".format(r))


  • 1

Reply