计算数据的平方根
import os
# encoding=utf8
num = float(input('请输入1个数字: '))
num_sqrt = num ** 0.5
print(' %0.3f 的平方根为 %0.3f'%(num ,num_sqrt))
运行结果