题目:I wish yesterday is tomorrow, then today is Friday. What is the actual date today? 思路:1.我希望昨天是明天,也就是说 假设的昨天 是 实际的明天 : yesterday=tomorrow 2.实际的明天 就是 ...
分类:
其他好文 时间:
2017-11-09 19:44:37
阅读次数:
269
f = open("yesterday","r",encoding="utf-8") f_new=open("yesterday2.bak","w",encoding="utf-8") for line in f: if "等待我最喜爱的歌" in line: line = line.replace... ...
分类:
编程语言 时间:
2017-11-08 20:54:33
阅读次数:
166
CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan le ...
分类:
其他好文 时间:
2017-11-07 01:33:45
阅读次数:
239
Stop trying to find a rewind. It's life, not a movie. 别妄想倒带,这是生活,不是电影。 There is no need to go back to yesterday, even we can do that, we may find ever ...
分类:
其他好文 时间:
2017-11-05 16:29:43
阅读次数:
152
nginx日志切割脚本#!/bin/bash
#这个脚本是用来切割nginx日志根据自己情况进行必要的切割:
set-e
logs_path="/data/wwwlogs/"
oldlogs_path="/data/wwwlogs/ngx_oldlogs/"
hos="ngx128"
old_nginx=`mv${logs_path}access.log${logs_path}access_$(date-d"yesterday"+"%Y%m%d")..
分类:
其他好文 时间:
2017-11-04 00:27:59
阅读次数:
245
f = open("yesterday","r",encoding="utf-8") #print(f.read()) #for i in range(5): # print(f.readline()) #打印前5行 #low loop ''' for index,line in enumerate... ...
分类:
编程语言 时间:
2017-11-02 18:20:33
阅读次数:
168
The 10th Guangzhou Friendship Games of 2017 football champion was born yesterday on a field of blood and fire! They beat the U.S consulate, Italian co ...
分类:
其他好文 时间:
2017-10-30 19:52:33
阅读次数:
355
Would rather have done a regret, do not miss the regret. 宁愿做过了后悔,也不要错过了后悔。 Yesterday, I read several theses (meaning papers) about ROS and real-time r ...
分类:
其他好文 时间:
2017-10-29 11:07:44
阅读次数:
188
javascript作用域相关整理。 一、全局作用域(全局作用域就是在整个代码中都能访问的对象) 第一种全局作用域是最外面定义的变量 1,最外面声明的变量,都可以调用。 2,外面函数声明的变量,里面的函数可以调用。 3,外面不能调用函数里面声明的变量。 4,外面不能调用函数里面的函数。 第二种是不写 ...
分类:
编程语言 时间:
2017-10-24 17:19:17
阅读次数:
165
code: 文件内容:(yesterday) 感想: 思路很简单就是打开源文件,然后循环,把源文件要替换的内容替换再写入新文件! ...
分类:
编程语言 时间:
2017-09-28 19:11:26
阅读次数:
178