2013年8月9日

摘要: http://www.cnblogs.com/known/archive/2010/07/31/1789648.html 阅读全文
posted @ 2013-08-09 16:16 妖¥孽 阅读(88) 评论(0) 推荐(0)
 
摘要: 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)