码迷,mamicode.com
首页 >  
搜索关键字:ctime    ( 1022个结果
Vue对List的删除和新增操作
Vue对List的删除操作 var vm = new vue({ el: '#app' data: { id: ' ', name: ' ', list: [ { id : 1, name : '奔驰', ctime: new Date() }, { id : 2, name : '宝马', cti ...
分类:其他好文   时间:2020-02-21 20:46:50    阅读次数:88
logging将日志写入文件filehandler
import logging logger = logging.getLogger() logger.setLevel(level = logging.INFO) handler = logging.FileHandler("log.txt") handler.setLevel(logging.IN ...
分类:其他好文   时间:2020-02-14 16:13:27    阅读次数:82
C++ 已知两个时间(年月日)求日期差
#include<iostream> #include <ctime> using namespace std; int main() { struct tm t1 = { 0 }; struct tm t2 = { 0 }; double seconds; t1.tm_year = 2019 - ...
分类:编程语言   时间:2020-02-12 11:14:17    阅读次数:96
Codeforces 101482F(gym)随机数
给出n个点,求是否存在一条直线,使得落在直线上的点占所有点的p%以上。 n<=100000 2<=p<=100 #include<iostream> #include<cstdio> #include<cstring> #include<ctime> #include<cstdlib> #defin ...
分类:其他好文   时间:2020-02-12 00:56:34    阅读次数:75
Python获取当前时间_获取格式化时间_格式化日期
Python获取当前时间_获取格式化时间: Python获取当前时间: 使用 time.time( ) 获取到距离1970年1月1日的秒数(浮点数),然后传递给 localtime 获取当前时间 #使用 time.localtime(time.time()) import time times = ...
分类:编程语言   时间:2020-02-10 14:10:28    阅读次数:81
脚本语言学习(四)
time库的使用 + time库是python中处理时间的标准库 + 使用 和`time.()`调用的格式即可使用 作用 :计算机时间的表达;提供获取系统时间并格式化输出的功能;提供系统级精确计时功能,可用于程序性能分析 time库包含三类函数: + 时间获取:time(),ctime(),gmti ...
分类:编程语言   时间:2020-02-09 18:39:32    阅读次数:78
获取UTC+0时间的批处理
@echo off call :getUTCTime echo %UTCTIMESTR% exit /b :getUTCTime FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic path win32_utctime get /format:li ...
分类:其他好文   时间:2020-02-08 18:06:00    阅读次数:85
一个小小的俄罗斯方块小游戏
用了八个小时 也挺不容易的 大神不喜勿喷 #include <iostream> #include <string> #include <ctime> #include <cstdlib> #include <windows.h> #include <conio.h> using namespace ...
分类:其他好文   时间:2020-02-07 11:09:38    阅读次数:67
python logging模块写入中文,文件乱码的解决方法
一下文件执行将产生乱码,切.log文件显示问好,打不开 import logging def shop_logging(name): name = name+"登录成功!" logger = logging.getLogger() fh = logging.FileHandler("test.log ...
分类:编程语言   时间:2020-02-02 19:59:16    阅读次数:123
猜数字游戏
#include<iostream> #include<cstdlib> #include<ctime> using namespace std; int main() { int n,sum=0,win=0,die=0,step=0,m1=10,m2=0,i,j,k,x,y,h=-1; doubl ...
分类:其他好文   时间:2020-01-30 19:13:42    阅读次数:89
1022条   上一页 1 ... 7 8 9 10 11 ... 103 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!