摘要: 3.3.1-永久性排序 ['audi', 'bmw', 'subaru', 'toyoto']['toyoto', 'subaru', 'bmw', 'audi'] 3.3.2-临时排序 Here is the original list:['bmw', 'audi', 'toyoto', 'sub 阅读全文
posted @ 2019-02-01 16:27 小壮壮的学习笔记 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 显示结果 ['trek', 'cannondale', 'redline', 'specialized']['trek', 'cannondale', 'redline', 'specialized', 'ducati']['trek', 'cannondale', 'redline', 'suzu 阅读全文
posted @ 2019-02-01 15:15 小壮壮的学习笔记 阅读(161) 评论(0) 推荐(0) 编辑
摘要: # 尽可能经常使用你的新技能“cleave” hero.moveXY(23, 23) while True: #查找敌人,然后给赋值给变量enemy enemy = hero.findNearestEnemy() # 如果hero.isReady为真,就使用“Cleave”干掉敌人! if hero 阅读全文
posted @ 2018-03-09 12:26 小壮壮的学习笔记 阅读(237) 评论(0) 推荐(0) 编辑
摘要: # Collect all the gems in 4 moveXY's or less!# Programmers need to think creatively!# 本章的目标在于只能用4步完成游戏,用常规思维围着宝石走,至少要6句# 所以在这里,用4句代码走一个大的三角形就能完成 阅读全文
posted @ 2018-03-05 11:31 小壮壮的学习笔记 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 代码来自(Kithgard地牢45关Mightier Than the Sword) # A variable is a way of holding on to a value. #变量是一种保存值的方式。 # Here the "password" variable holds the secr 阅读全文
posted @ 2018-03-04 11:56 小壮壮的学习笔记 阅读(359) 评论(0) 推荐(0) 编辑