家人来了,代码供参考:
n = int(input()) rate = 100*(2**(1./n)-1) print("%.2f%c"%(rate,'%'))
结果:
有帮助还请给家人一个宝贵的采纳支持一下哦