程序代码:
#导入math文件 import math #换算时间 min = 6 * 60 #计算分裂次数 num = min / 20 #计算大肠杆菌最终数量 quantity = 20000 * (2 ** num) #输出结果 print(quantity) #查看运行过程 dir(math) help(math.sqrt)
运行过程和结果:
PS C:Users郝锦杰Desktop大一文件研讨课python> & 'C:Users郝锦杰AppDataLocalProgramsPythonPython37python.exe' 'c:Users郝锦杰.vscodeextensionsms-python.python-2021.11.1422169775pythonFileslibpythondebugpylauncher' '51287' '--' 'c:Users郝锦杰Desktop大一文件研
讨课python1.py'
5242880000.0
Help on built-in function sqrt in module math:
sqrt(x, /)
Return the square root of x.



