#coding=utf-8import randomimport timeimport datetime TIMESTART = '2016-06-04 10:00:01' #increase time, string to time, then add seconds you want, at l ...
分类:
编程语言 时间:
2016-06-30 12:24:32
阅读次数:
191
效果: 推荐文档:http://effbot.org/tkinterbook/ *python2.7环境。。在python3.X中tkinter有改变,请注意!! ...
分类:
其他好文 时间:
2016-06-30 12:22:14
阅读次数:
740
python3.4 UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 实用python的时候 打开一个csv的文件出现一下错误。 然后百度了一下,找到了对应的解决方案 在后面加上encoding=utf-8即可 ...
分类:
编程语言 时间:
2016-06-30 12:14:40
阅读次数:
275
考虑到要手工修改许多的文件名太费时,而且网上下载的图片大多如下(完全不能满足强迫症) 就用python来代替我们完成这个过程直接贴上代码 os.path.join 用于拼接路径 e.g. os.path.join("home","me") 返回/home/meos.path.isdir 用于判断文件 ...
分类:
编程语言 时间:
2016-06-29 23:43:01
阅读次数:
431
安装python3 安装脚本如下: wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz tar zxvf Python-3.4.3.tgz cd Python-3.4.3 ./configure --prefix=/usr/lo ...
分类:
编程语言 时间:
2016-06-29 23:41:10
阅读次数:
199
一. 简介 python 提供很多方式处理日期与时间,转换日期格式是一个常见的功能。 时间元组:很多python函数用一个元组装起来的9组数字处理时间。 python中时间日期格式化符号: 二. time模块 时间相关操作,时间有三种表示方式: 时间戳 1970年1月1日之后的秒,即:time.ti ...
分类:
编程语言 时间:
2016-06-29 22:14:37
阅读次数:
710
基于Python3的神经网络实现,实现从数据集生成到逻辑回归,再到3层神经网络实现,说明了实现原理和基础的理论知识,最后,通过多层次拟合说明了拟合程度的利弊。本项目的展示方式是Python的jupyter notebook。...
分类:
编程语言 时间:
2016-06-29 20:47:30
阅读次数:
601
codesay:#encoding=utf-8
#author:walker
#date:2016-06-28
#summary:编译当前文件夹下所有.py文件
importos,sys,shutil
importpy_compile
cur_dir_fullpath=os.path.dirname(os.path.abspath(__file__))
#清空目录
defClearDir(dir):
print(‘ClearDir‘+dir+‘...‘)
forentr..
分类:
编程语言 时间:
2016-06-28 18:46:46
阅读次数:
209
第一种方法:System.DateTime.Now 第二种方法:Stopwatch ...
2016.6.28软件重新迁移到 http://yun.baidu.com/s/1pL2BAfL#path=%252F 源码Github:https://github.com/hunterhug/gdufesearch 代码讲解待写。。。 # GDUFE绩点/考试查询工具一个广东财经大学查询成绩/考 ...
分类:
编程语言 时间:
2016-06-28 12:30:44
阅读次数:
373