返回顶部

05 2017 档案

在tlog里统计注册统计相关功能
摘要:#!/usr/bin/env python #_*_ encoding: utf-8 _*_ ''' 注册统计相关功能 ''' __author__ = 'augustyang' import os,sys,time,datetime ###当前时间的几个小时内的 #now_times =time.strftime('%Y-%m-%d %H:%M:%S',time.localtime... 阅读全文

posted @ 2017-05-23 14:42 augustyang 阅读(220) 评论(0) 推荐(0)

通过t_log文件计算次日留存
摘要:计算留存率 #!/usr/bin/env python #_*_ encoding:utf-8 _*_ import os,sys,time,datetime ''' 次留: 14号注册 15号的登录用户数 / 14号注册的用户数 1天 3留: 14日注册 16日登陆的用户数 /14日注册用户数 2 阅读全文

posted @ 2017-05-18 16:30 augustyang 阅读(314) 评论(0) 推荐(0)

第九章练习
摘要:9-1文件过滤. 显示一个文件的所有行, 忽略以井号( # )开头的行. 这个字符被用做Python , Perl, Tcl, 等大多脚本文件的注释符号. 附加题: 处理不是第一个字符开头的注释 #!/usr/bin/env python def checkfile(): with open('D: 阅读全文

posted @ 2017-05-12 15:25 augustyang 阅读(160) 评论(0) 推荐(0)

练习
摘要:识别三次 #!/usr/bin/env python import sys my_age=28 count = 0 def num(nums): global count while count < 3: user_input = int(input("input your guess num:") 阅读全文

posted @ 2017-05-08 19:10 augustyang 阅读(164) 评论(0) 推荐(0)

python2.7安装完后,执行python时,出现import readline ImportError: No module named readline 以及tab补全
摘要:yum安装readline、readline-devel #yum install -y readline-devel 下载安装setuptools #wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11 阅读全文

posted @ 2017-05-04 18:59 augustyang 阅读(10051) 评论(0) 推荐(0)

导航