提交 68f6ba3c 编写于 作者: 三贵's avatar 三贵

Update 2022-12-02.py

上级 20f9f2df
...@@ -27,30 +27,3 @@ new = response.replace('/', '') ...@@ -27,30 +27,3 @@ new = response.replace('/', '')
pattern = re.compile('(?<=title).*?(?=digest)') pattern = re.compile('(?<=title).*?(?=digest)')
print(pattern.search(new)) print(pattern.search(new))
"""
# 体重BMI指数检测
def high():
try:
print('输入身高,单位M')
high_now = float(input()) ** 2
return high_now
except:
print('输入有误重新输入')
return high()
def heavy():
try:
print('输入体重,单位KG')
heavy_now = float(input())
return heavy_now
except:
print('输入有误重新输入')
return heavy()
bmi = format(heavy() / high(), '.2f')
print(bmi)
"""
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册