输入: pow(0.4321, 20) 输出: 5.1485546410769524e-08
灵感来源:
输入: print("%.100f"%(pow(0.4321, 20))) 输出: 0.0000000514855464107695238993420865959704801895213677198626101016998291015625000000000000000000000000
# 将print("%.100f"%(pow(0.4321, 20)))中间的直接提取出来 输入: "%.100f"%(pow(0.4321, 20)) 输出: '0.0000000514855464107695238993420865959704801895213677198626101016998291015625000000000000000000000000'
2.2 方法2:
输入: "{:.100f}".format(pow(0.4321, 20)) 输出: '0.0000000514855464107695238993420865959704801895213677198626101016998291015625000000000000000000000000'
**
**