赵乐ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年3月19日

摘要: 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 阅读全文
posted @ 2013-03-19 18:27 赵乐ACM 阅读(294) 评论(0) 推荐(0) 编辑