2013年8月9日

摘要: def func(x): print("x is ", x) x = 2print("Changed local x to ", x) x = 50func(x) print("x is still ", x)运行结果是:('x is ', 50)('Changed local x to ', 2)?????????这里的X竟然还是50,这就是Python里所谓的局部变量。。。。。('x is still ', 50) 阅读全文
posted @ 2013-08-09 15:26 妖¥孽 阅读(128) 评论(0) 推荐(0)
 
摘要: http://www.cnblogs.com/liuzhong/archive/2011/08/12/2135718.html 阅读全文
posted @ 2013-08-09 14:54 妖¥孽 阅读(82) 评论(0) 推荐(0)

2013年8月2日

摘要: http://www.cnblogs.com/liusuqi/p/3231751.html 阅读全文
posted @ 2013-08-02 10:48 妖¥孽 阅读(125) 评论(0) 推荐(0)

2013年8月1日

摘要: http://bbs.51cto.com/viewthread.php?tid=910399&extra=&page=1 阅读全文
posted @ 2013-08-01 09:33 妖¥孽 阅读(101) 评论(0) 推荐(0)
 
摘要: http://www.cnblogs.com/libiao/archive/2008/12/08/1350240.html 阅读全文
posted @ 2013-08-01 09:23 妖¥孽 阅读(107) 评论(0) 推荐(0)