2022年11月24日

Python第十周

摘要: 一. 实验目的和要求 二. 实验环境 python 3.10 64-bit 三. 实验过程 实例1 代码如下: 1 def fun_bmi(person, height,weight) : 2 '''功能:根据身高和体重计算BMI指数''' 3 print(person +"的身高: " + str 阅读全文

posted @ 2022-11-24 14:46 声声声 阅读(25) 评论(0) 推荐(0)

Python第九周

摘要: 一. 实验目的和要求 了解Pyhon中常见的异常 二. 实验环境 python 3.10 64-bit 三. 实验过程 实例1 代码如下: 1 print("\n",'='*10,"蚂蚁庄园动态","="*10) 2 file = open('message.txt','w') 3 print("\ 阅读全文

posted @ 2022-11-24 14:39 声声声 阅读(28) 评论(0) 推荐(0)

导航