code
文章平均质量分 87
oasis_linbo
努力充电中
展开
-
Principles of Computing (Part 1) -- Week 5 Mini-projects: Cookie Clicker Simulator
"""Cookie Clicker Simulator"""import simpleplotimport mathimport random# Used to increase the timeout, if necessaryimport codeskulptorcodeskulptor.set_timeout(20)import poc_clicker_provide原创 2015-03-29 18:54:26 · 1142 阅读 · 0 评论 -
Principles of Computing (Part 2) -- week 1
1. The importance of Searching2. Generators Generators are a kind of iterator that are defined like functions. A generator function looks just like a regular function, except that it uses yield in原创 2015-04-08 11:24:24 · 625 阅读 · 0 评论 -
Principles of Computing (Part 2) week 2 -- Recursion
The importance of RecursionRecursion methodology is to invoke itself to solve problem by changing big problem to small one原创 2015-04-09 19:24:24 · 806 阅读 · 0 评论 -
Principles of Computing (Part 2) -- week 3 (Tree, Lambda, Minimax)
lambda: Anonymous functions are simplified forms of function definitions.tree: is a hierarchical data structure with applications in many areas of computer science. minimax: minimize the maximum lose.原创 2015-04-19 12:55:35 · 572 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python (Part 2) -- Week 7 More Classes & Sprites
- More classes: Ship, Sprite - Load Sound: play, pause, rewind - Programming Tips原创 2015-04-12 08:16:46 · 801 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python (Part 2) -- week 8
Sets — Groups of spritesAnimation — Sprite animation原创 2015-04-21 13:47:45 · 835 阅读 · 0 评论