03 2023 档案
摘要:Problem 6 题目描述: 注意事项: 1.不能使用for while循环 2.达到limit时,必须立即返回,不能继续递归 代码: 1.我的代码,很繁琐 1 def shifty_shifts(start, goal, limit): 2 """A diff function for auto
阅读全文
摘要: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
阅读全文
摘要: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] >>>[
阅读全文