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
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
#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
给出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获取当前时间: 使用 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
@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
一下文件执行将产生乱码,切.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