摘要: # 1.系统函数 由系统提供,直接拿来用或是导入模块后使用 ``` a = 1.12386 result = round(a,2) print(result) > 1.12 ``` # 2.自定义函数 * 函数是结构化编程的核心 * 使用关键词`def`来定义函数 ``` #函数定义 def fun 阅读全文
posted @ 2023-07-10 23:06 清澈的澈 阅读(75) 评论(0) 推荐(1) 编辑