码迷,mamicode.com
首页 >  
搜索关键字:python3 datetime    ( 17497个结果)
python之datetime处理
python版本3.5 1.datetime包导入方式 datetime包导入有两种方式(新人注意): 第一种:import datetime # 导入时间日期 >>>获取当前时间:now = datetime.datetime.now() 2017-09-15 11:29:21.796463 >> ...
分类:编程语言   时间:2017-09-15 16:50:35    阅读次数:240
常用模块学习
本节大纲: 本节大纲: 模块介绍 time &datetime模块 random os sys shutil json & picle shelve xml处理 yaml处理 configparser hashlib subprocess logging模块 re正则表达式 模块,用一砣代码实现了某 ...
分类:其他好文   时间:2017-09-15 16:39:38    阅读次数:340
Python3的列表推导式
# -*- coding: utf-8 -*- li = [1,2,3,4,5,6,7,8,9]print ([x**2 for x in li]) print ([x**2 for x in li if x>5]) print (dict([(x,x*10) for x in li])) prin ...
分类:编程语言   时间:2017-09-15 13:47:29    阅读次数:157
python3 爬虫5--分析Robots协议
1Robots协议 Robots协议告诉了搜索引擎和爬虫那些页面可以抓取,那些不可以,通常是存放在robots.txt文件里面,位于网站的根目录下 robots.txt中内容的示范: User-agent:* //表示了搜索爬虫的名称,*表示对任何爬虫都有效 Disallow:/ //表示了不允许抓 ...
分类:编程语言   时间:2017-09-15 13:44:01    阅读次数:263
DateTimePicker 控件置空
dtOrderDateFrom.Format = DateTimePickerFormat.Custom; dtOrderDateFrom.CustomFormat = " "; DateTimePicker 时间控件置空 ...
分类:其他好文   时间:2017-09-15 13:38:07    阅读次数:129
Python3 利用pip安装BeautifulSoup4模块
一、找到Python3的安装文件夹 二、将路径复制 三、Windows10 打开Windows PowerShell(管理员)、Windows 8、8.1、7使用cmd 切换到相应目录 四、此目录下的文件 五、执行指令(安装完成) ...
分类:编程语言   时间:2017-09-15 12:15:14    阅读次数:221
Python3 pip 安装(Windows版)
一、找到Python3的安装文件夹 二、将路径复制 三、Windows10 打开Windows PowerShell(管理员)、Windows 8、8.1、7使用cmd 切换到相应目录 四、执行指令 五、使用相同步骤安装pip3.6(我的版本是3.6) 六、重启Windows PowerShell( ...
分类:编程语言   时间:2017-09-15 11:00:14    阅读次数:220
扩增子分析QIIME2-1简介和安装
QIIME2是微生物组分析流程QIIME(截止17.7.13被引7771次)的全新版(不是升级版),采用python3全新编写,并于2018年1月全面接档QIIME,是代表末来的分析方法标准(大牛们制定方法标准,我们跟着用就好了)。 安装 安装方法比较简单,参照官网:https://docs.qii ...
分类:其他好文   时间:2017-09-15 10:11:53    阅读次数:217
python3—列表
列表是什么 输出: ['jim', 'lilei', 'lucy']jimJim 输出: jim lilei lucylucy lilei jim 输出: ['lily', 'lilei', 'lucy']['lily', 'lilei', 'lucy', 'xiaoming']['lily', ' ...
分类:编程语言   时间:2017-09-15 10:05:34    阅读次数:162
pycharm 2017新建文件添加编码方式等
file->setting->Editor->File and Code Templates->Python Script 添加 #!/usr/bin/python3# -*- coding:utf-8 -*-__author__='$USER' ...
分类:其他好文   时间:2017-09-15 01:43:33    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!