摘要: 练习内容: 将ex25模块导入 在终端中手动运行函数 查看变化结果 退出quit() 1 def break_words(stuff): 2 "用来分割参数元素" 3 words = stuff.split(' ') 4 return words 5 6 def sort_words(words): 阅读全文
posted @ 2023-10-06 23:40 萹豆 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 根据书中的PowerShell运行结果,进行仿写 beans,jars,crates = secret_formula(start_point) # 函数运算结果存储方式一 print(f"We'd have {beans} beans, {jars} jars, and {crates} crat 阅读全文
posted @ 2023-10-06 19:35 萹豆 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 后续补充 阅读全文
posted @ 2023-10-06 19:23 萹豆 阅读(15) 评论(0) 推荐(0) 编辑