用Shell精简log文件(shell的字符串和文件操作)

当前目录下有文件log,内容大致如下2015-11-29 54144a04ad4asd044a4s CSeq:1 INVITE sip:2112@sipserver.com:5060 SIP/2.0 2015-11-29 54144a04ad4asd045457 CSeq:1 INVITE SIP...

2016-11-29 16:31:15

阅读数:251

评论数:0

Python实战计划学习作业2-1

代码如下import pymongo from bs4 import BeautifulSoup import requestsclient = pymongo.MongoClient('localhost', 27017) xiaozhu = client['xiaozhu'] rent_hou...

2016-11-26 00:09:01

阅读数:245

评论数:0

Python实战计划学习作业1-5

代码如下from bs4 import BeautifulSoup import requestssingle_url = "http://weheartit.com/inspirations/taylorswift?scrolling=true&page=" targ...

2016-11-22 23:18:12

阅读数:1493

评论数:0

Python实战计划学习作业1-4

代码如下from bs4 import BeautifulSoup import requests import time import os import urllib import randomsingle_url = "http://weheartit.com/inspiratio...

2016-11-16 22:29:12

阅读数:733

评论数:0

Python实战计划学习作业1-3

代码如下:from bs4 import BeautifulSoup import requestsurls = ["http://bj.xiaozhu.com/search-duanzufang-p{}-0/".format(str(i)) for i in range(2,...

2016-11-14 22:45:35

阅读数:2434

评论数:0

Python实战计划学习作业1-2

代码如下from bs4 import BeautifulSouphtml_path = "/Users/reed/Documents/dev/Plan-for-combating/week1/1_2/1_2answer_of_homework/index.html"with ...

2016-11-12 22:54:02

阅读数:301

评论数:0

Python实战计划学习作业1-1

不是学习Python的第一天,跟随教程做了如下网页,问题来了,为啥中央3个图片不是居中的,右侧有多余空白。代码如下<!DOCTYPE html> <html lang="en"> <head> <meta charset=&qu...

2016-11-09 21:50:46

阅读数:271

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭