python3
ducker_2021
测试大白
展开
-
Python3 类+self+ __init__ + 类库调用
Python3小白日记python3 类详解 + self注意点 + __init__()构造函数 + 类库调用系统:Python 3.6.5 + windows7 + 自带time/datetime库首先写一个时间函数类,有2个方法#python 3.6.5 #coding = UTF-8 import time import datetime class GetTime(object): ...原创 2018-06-08 00:41:32 · 741 阅读 · 0 评论 -
Python3 时间函数 + 时间戳
开贴Python小白日记Pyhon3时间函数系统:Python 3.6.5 + windows7 import time import datetime #时间函数 datetime.datetime.now() #2018-06-07 22:20:11.013302 #按照固定格式显示时间 nowTime = datetime.datetime.now().strftime('%Y%m%d%...原创 2018-06-07 22:44:12 · 2246 阅读 · 0 评论 -
Python3 操作文件读写open()
Python3小白日记python3 使用open() 操作文件读写。系统:Python 3.6.5 + windows7 + 自带time/datetime库嗯。小案例,执行结果写到指定文件。注意windows下,\\表示路径。Linux下./xxx/xx/xxstr(int(time.mktime(Array))) 这里time函数返回时float型,值是000.0必须,用int去0,在转...原创 2018-06-08 00:57:31 · 3390 阅读 · 0 评论 -
Python3 HTMLTestRunner 适配
小白日记修改前:HTMLTestRunner下载地址:http://tungwaiyip.info/software/HTMLTestRunner.html BSTestRunner 下载地址:https://github.com/easonhan007/HTMLTestRunner 修改后:HTMLTestRunner下载地址:https://pan.baidu.com/s/1W6...翻译 2018-06-09 09:08:59 · 1208 阅读 · 0 评论