码迷,mamicode.com
首页 >  
搜索关键字:python3 datetime    ( 17497个结果)
python第一天
python3 Python的3.0版本,常被称为Python3000,或简称Py3k。相对于Python的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python3.0在设计的时候没有考虑向下兼容。 第一个Python3.x程序 #!/usr/bin/python3 print("Hello,World!") 执行命令:pythonhello.py 输出..
分类:编程语言   时间:2016-05-14 01:12:05    阅读次数:292
Python之路Python3【第零篇】Python2 & Python3区别持续更新~
print Python2中print是一个语句,只需要向吧输出的放在print关键字后面就可以输出。 Python3中从上面的代码中可以看出他现在是一个函数,就像其他函数一样,print()需要您将要输出的内容作为参数传给他。 ...
分类:编程语言   时间:2016-05-13 23:14:28    阅读次数:282
python周报第一周
首次写博客,勿喷!以后无特殊声明都是在python3.5下操作。 1.python2和python3最基础的差异 1.print python2和python3在新手看来最大的差别无异乎是print了,我分别演示下: liukai@bogon:~$ python -VPython 2.7.10liu ...
分类:编程语言   时间:2016-05-13 23:09:09    阅读次数:434
Python笔记:加减乘除,格式化字符串
[root@localhostday01]#python3.pyPleaseinputanumber:1Pleaseinputanumber:23-1201+2=31-2=-11*2=21/2=0[root@localhostday01]#cat3.py#!/usr/bin/pythonnum1=input("Pleaseinputanumber:")num2=input("Pleaseinputanumber:")printnum1+num2printnum1-num2printnum1*num2print..
分类:编程语言   时间:2016-05-13 15:34:15    阅读次数:334
Python3.5源码安装
1、下载源码包前往官网:https://www.python.org/downloads/source/[root@localhostopt]#wgethttps://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz2、安装:安装基本GCC编译环境yum-yinstallgccgcc-c++makeautomakeautoconf安装源码包[root@localhostopt]#tarfxPython-3...
分类:编程语言   时间:2016-05-13 15:26:34    阅读次数:214
Python之路 1Day
1.python基础入门作者:黄旭提示:语法基于python3.5版本(会提示2.7版本和3.5版本的区别)Python命令行将以>>>开始,比如 >>>print ('Hello World!')window上会使用JetBrains PyCharm 5.0.2专业版Python官网:http:/... ...
分类:编程语言   时间:2016-05-13 13:38:26    阅读次数:240
sql中limit和汇总函数的集合使用
limit和求和一起 select SUM(A.high) from (select * from minute1_K order by DateTime desc limit 10) A limit和avg一起 select avg(A.AskVolume1) from (select * fro ...
分类:数据库   时间:2016-05-13 13:32:46    阅读次数:738
C# 日期格式化
日期转化 为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到DateTime.ToString的方法(String, IFormatProvider)。 如下所示: 结果输出: 参数format格式详细用法: d Sho ...
分类:Windows程序   时间:2016-05-13 12:54:59    阅读次数:306
Python3发送post请求,自动记住cookie
转载自:http://www.cnblogs.com/meitian/p/4607737.html 在做登录的post请求时,需要记住cookie,否则不能访问登录后的页面。 下面是登录的代码: #coding:utf-8import urllibimport http.cookiejar url ...
分类:编程语言   时间:2016-05-13 11:55:33    阅读次数:186
python学习记录
将自己学习python的一些过程记录下来,方便自己后期进一步的巩固自己 运行环境 系统环境:windows7 64位系统 python版本:python3 python基础 python简介及安装 初识python来自为知笔记(Wiz) ...
分类:编程语言   时间:2016-05-13 10:40:05    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!