码迷,mamicode.com
首页 >  
搜索关键字:python3 datetime    ( 17497个结果)
python开发飞机大战
1.使用pygame包,使用Python3.5版本2.达到的效果是: 出现一个窗口,显示一张背景图片,出现一架敌机和一架自己的飞机 敌机在最上面,左右移动,随机发子弹,自己的飞机使用键盘左右键左右移动,使用空格键发子弹 当自己的飞机发出的子弹碰到敌机发出的子弹时,敌机的子弹消失 当自己的飞机发出的子 ...
分类:编程语言   时间:2017-07-26 01:39:40    阅读次数:1493
【Python】七段数码显示管
#DrawSevenSegDisplay.py import turtle, datetime def drawLine(draw): #绘制单段数码管 turtle.pendown() if draw else turtle.penup() turtle.fd(40) turtle.right(9... ...
分类:编程语言   时间:2017-07-25 22:33:16    阅读次数:313
Python实战之Selenium自动化测试web登录
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains import t... ...
分类:编程语言   时间:2017-07-25 21:15:06    阅读次数:210
c# DateTime 类
获得当前系统时间: DateTime dt = DateTime.Now;Environment.TickCount可以得到“系统启动到现在”的毫秒值DateTime now = DateTime.Now;Console.WriteLine(now.ToString("yyyy-MM-dd")); ...
分类:Windows程序   时间:2017-07-25 19:56:18    阅读次数:288
Selenium2 + Python3.6实战(五):生成HTML测试报告 Invalid argument
今天在学习自动化测试的高级应用,第一篇就是生成HTML测试报告,由于测试报告的名称没有进行设置,所以每次运行测试之前若没有手动修改之前的报告名称,运行时就会把原来的报告覆盖。这样做显然很麻烦,最好的解决办法就是在报告名称中加入当前时间,这样生成的报告既不会重叠,又能更清晰地知道报告生成的时间。 但是 ...
分类:编程语言   时间:2017-07-25 18:03:11    阅读次数:806
Python 2 和Python 3的区别
Python 2 和Python 3 的区别: 1. 直接运行python,其实是调用的python2,输入python3 ,其实是调用的是python3 2. 在python 2中需要提前标示出utf-8 的中文输入字符,# -*- coding: utf-8 -*- 或 #coding=utf- ...
分类:编程语言   时间:2017-07-25 17:17:38    阅读次数:216
kernel log time 转换为对应的年月日时分秒
import time import datetime import sys import getopt import os #需要加入 [ 691.165602] android time 2017-06-19 17:47:59.765338 #06-19 17:47:59.765338 [ 69... ...
分类:其他好文   时间:2017-07-25 17:17:08    阅读次数:1477
python 常用 time, datetime处理
python 中 time 有三种格式: float, struct tuple(time.struct_time 或 datetime.datetime), str 常用的: float --> struct tuple: time.localtime( float ) struct time t ...
分类:编程语言   时间:2017-07-25 11:18:46    阅读次数:243
linux(CentOS)下升级python3.5.2
centOS下的Python版本一般都比较低,很多应用都需要升级python来完成。我装的centOS的默认的python版本是V2.6.3,但运行node.js需要的版本是2.5以上。1。下载python3.3安装包:yuminstallreadline-devel.x86_64wgethttps://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz2..
分类:编程语言   时间:2017-07-25 10:34:38    阅读次数:198
解决scipy安装(pip install scipy)失败,以及其他问题
解决scipy安装(pip install scipy)失败,以及其他问题 解决: 1.在scipy官方库中并没有适合Windows的python3.6相关版本,故需要在网址http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy下载适合的版本,下载如: sc ...
分类:其他好文   时间:2017-07-25 10:26:33    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!