03 2023 档案

摘要:Problem 6 题目描述: 注意事项: 1.不能使用for while循环 2.达到limit时,必须立即返回,不能继续递归 代码: 1.我的代码,很繁琐 1 def shifty_shifts(start, goal, limit): 2 """A diff function for auto 阅读全文
posted @ 2023-03-28 21:56 哎呦_不想学习哟~ 阅读(63) 评论(0) 推荐(0) 编辑
摘要:Q6 题目描述: Write a function has_path that takes in a tree t and a string phrase. It returns True if there is a path that starts from the root where the 阅读全文
posted @ 2023-03-25 21:11 哎呦_不想学习哟~ 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1. >>> odds = [1, 3, 5, 7, 9] >>> [x+1 for x in odds] [2, 4, 6, 8, 10] 2. >>> [x for x in odds if 25 % x == 0] [1, 5] 3 >>> digits = [1, 8, 2, 8] >>>[ 阅读全文
posted @ 2023-03-21 19:57 哎呦_不想学习哟~ 阅读(29) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示