#初学小白,仅供参考
1.1计算所有三种组织中的ΔG值
import math
def detlaG(ATP,ADP,Pi):
R=0.00831
T=298
deltaG0=-30.5
return deltaG0+R*T*math.log(ADP*Pi/ATP)
print('肝中:',detlaG(3.5,1.8,5.0))
print('肌肉中:',detlaG(8.0,0.9,8.0))
print('脑中:',detlaG(2.6,0.7,2.7))
1.2将值转化为千卡
print('肝中:',detlaG(3.5,1.8,5.0)/4.184,'kJ/mol')
print('肌肉中:',detlaG(8.0,0.9,8.0)/4.184,'kJ/mol')
print('脑中:',detlaG(2.6,0.7,2.7)/4.184,'kJ/mol')
1.3计算pH值
import math
cH=0.00316*0.001
pH=-math.log10(cH)
print(pH)
1.4指数生长
total=1
for i in range(20,361,20):
total*=2
print(total)
1.5计算单个细菌细胞体积
import math
l=2.0
d=0.5
v=math.pi*(d/2)**2*l
print('单个大肠杆菌细胞体积是{:.2}um³'.format(v))
2.1端粒蛋