摘要:
1. list比较熟悉了,但是list的函数们还不清楚,参考http://docs.python.org/2/tutorial/datastructures.html2. for和while经验是尽量少用while,因为while出错的机会大。3. 综合起来写的一个小程序from sys import exitdef gold_room(): print "This room is full of gold. How much do you take?" next = raw_input("> ") if "0" in next 阅读全文