码迷,mamicode.com
首页 >  
搜索关键字:python3 datetime    ( 17497个结果)
Python 小工具集合
PyToolsPython小工具的集合,工具彼此间无联系。基于Python 3.4。Github 地址: https://github.com/ChenZhongPu/PyTools目前实现了: 查看新闻 查看微博 发布微博 搜索1024网站 Usage查看新闻python3 App.py news 使用腾讯新闻的RSS源。查看微博python3 App.py weibo 使用了Yahoo pipe...
分类:编程语言   时间:2015-04-18 19:17:51    阅读次数:197
C# DateTime
//c datetime 格式化DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//1277564168599128...
分类:Windows程序   时间:2015-04-18 17:41:25    阅读次数:176
Ubuntu gnome 14.10 安装使用virtualenv
我安装的Ubuntu gnome 14.10默认安装了python2.7.8和python3.4.2安装virtualenv命令:sudo easy_install virtualenv创建python虚拟环境命令:virtualenv --python=/usr/bin/python2.7/ vi...
分类:系统相关   时间:2015-04-18 14:27:47    阅读次数:199
例题:判断平年还是闰年。理解使用异常语句try catch finally 和datetime 时间类
while (true) { Console.Write("请输入一个年份:"); int rn =Convert .ToInt32 ( Console.ReadLine()); //输入一个年份 //string s = ""; try //尝试,保护起来,使程序出错也能执行 { DateTim....
分类:其他好文   时间:2015-04-17 23:42:52    阅读次数:130
Python3.4 + Django1.7.7 搭建简单的表单并提交
后面还有一个问题,是我把txt生成了,但是网页没有返回我还不知道,现在怎么直接返回txt 首先有一个问题 django1.7之前,这样用: HttpResponse(simplejson.dumps({“status”: ‘200’, “message”:u’登录成功’}), mimetype=’application/json’) 没问题,但是django1,7之...
分类:编程语言   时间:2015-04-17 18:12:34    阅读次数:340
SQL分组多列统计(GROUP BY后按条件分列统计) -转
今天在园子里看到个group by 分组多列统计的例子,转走给大家分享一下:create table tests (year datetime year to year,type char(1),value int);alter table tests alter colomn year int;i...
分类:数据库   时间:2015-04-17 17:19:39    阅读次数:400
第六周项目5-友元类
定义下面两个类的成员函数(为体验友元类,实际上本例并不一定是一个好的设计,将两个类的合并为一个DateTime,日期、时间都处理更好)。 /* * Copyright (c) 2015,烟台大学计算机学院 * All right reserved. * 作者:邵帅 * 文件:Demo.cpp * 完成时间:2015年04月16日 * 版本号:v1.0 */ #include #include ...
分类:其他好文   时间:2015-04-16 21:57:42    阅读次数:146
Time
TimeTime access and conversions(时间使用和转换) 在平常的代码中,我们常常需要与时间打交道。在Python中,与时间处理有关的模块就包括:time,datetime以及calendar。这篇文章,主要讲解time模块。在开始之前,首先要说明这几点:在Python...
分类:其他好文   时间:2015-04-16 21:38:17    阅读次数:156
[pyqt5]解决could not find or load the Qt platform plugin windows
在PyQt5+python3+pycharm开发环境配置时,遇到了This application failed to start because it could not find or load the Qt platform plugin "windows".的问题。导致无法通过pycharm运行Pyqt5的应用 出现该问题的原因是环境变量没有添加。 解决方法:...
分类:Windows程序   时间:2015-04-16 17:38:54    阅读次数:2101
PyQt5+python3+pycharm开发环境配置
1.下载PyQt 官方网站:http://www.riverbankcomputing.com/software/pyqt/download5 我的操作系统是64位的,安装的是Python3.4.3,所以我选择下载:PyQt5-5.4.1-gpl-Py3.4-Qt5.4.1-x64.exe 单击安装即可。 2.配置PyCharm 1)打开PyCharm,执行快捷键ct...
分类:编程语言   时间:2015-04-16 15:52:59    阅读次数:2361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!