对文件操作流程 现有文件如下 Somehow, it seems the love I knew was always the most destructive kind 不知为何,我经历的爱情总是最具毁灭性的的那种 Yesterday when I was young 昨日当我年少轻狂 The t ...
分类:
编程语言 时间:
2018-06-23 19:10:36
阅读次数:
222
统计生成日期为昨天的数据(按日期算,非24小时):via1.py#!/usr/bin/pythonimportosimportdatetimeimportshutildir="/ming"yesterday=datetime.date.today()-datetime.timedelta(days=1)os.remove("/log/110Hudrm/gmsnew.t
分类:
其他好文 时间:
2018-06-19 18:54:47
阅读次数:
152
datetime函数:via1.py#!/usr/bin/pythonimportdatetimenow=datetime.datetime.now()today=datetime.date.today()yesterday=datetime.date.today()-datetime.timedelta(days=1)printnowprinttodayprintyesterday:wqpyth
分类:
其他好文 时间:
2018-06-19 17:47:34
阅读次数:
173
3602 Counting Swaps 0x30「数学知识」例题 背景 https://ipsc.ksp.sk/2016/real/problems/c.html Just like yesterday (in problem U of the practice session), Bob is b ...
分类:
其他好文 时间:
2018-06-16 21:09:21
阅读次数:
178
#!/bin/bash yesterday=`date -d last-day +%Y-%m-%d` dayago=`date -d '2 days ago' +%Y-%m-%d` #echo $yesterday yester=`grep 'createOrderPayByQrcode.in' /... ...
分类:
其他好文 时间:
2018-06-16 15:13:43
阅读次数:
146
文本操做: 对文件操作流程: 1. 打开文件,得到文件句柄并赋值给一个变量 2. 通过句柄对文件进行操作 3. 关闭文件 data = open("file").read() print(data) fs = open("yesterday","r", encoding="utf-8") #fs即文 ...
分类:
其他好文 时间:
2018-06-15 00:00:10
阅读次数:
231
Problem description It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1 ...
分类:
其他好文 时间:
2018-06-05 21:15:50
阅读次数:
258
问题 H: Lining Up 题目描述 There are N people, conveniently numbered 1 through N. They were standing in a row yesterday, but now they are unsure of the orde ...
分类:
其他好文 时间:
2018-06-01 15:32:12
阅读次数:
202
在linux shell编程中,大多数情况下,可以使用测试命令来对条件进行测试,这里简单的介绍下, 比如比较字符串、判断文件是否存在及是否可读等,通常用"[]"来表示条件测试。注意:这里的空格很重要。要确保方括号的空格。笔者就曾因为空格缺少或位置不对,而浪费好多宝贵的时间。if ....; then ...
分类:
系统相关 时间:
2018-05-27 23:44:04
阅读次数:
217
update table1 s set s.yesterday = (select yesterday from table1_BACK sb where sb.tagname = s.tagname and rownum = 1) where s.tagname = (select tagname ...
分类:
数据库 时间:
2018-05-20 19:27:44
阅读次数:
321