摘要:
原文链接:http://www.jianshu.com/p/e6ff4a28ab5a需要说的是首先要搞清楚python的版本因为Centos用的是2.6的python版本,导致了各种问题。但是yum又要用2.6所以先装个2.7版本的python。然后是nginx,我是通过编译安装的在/usr/loc... 阅读全文
posted @ 2015-09-15 17:54
_Doraemon
阅读(226)
评论(0)
推荐(0)
摘要:
今天在写一个脚本时需要定义一个全局的时间变量,但是在函数中修改后一直不能更新,发现是因为函数是有自己的namespacelast_send_time = 0def test(): last_send_time = 2print last_send_time#will print 0#to ch... 阅读全文
posted @ 2015-09-15 11:14
_Doraemon
阅读(752)
评论(0)
推荐(0)