自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

转载 压缩_解压 命令

Linux下最常用的打包程序就是tar了,使用tar程序打出来的包我们常称为tar包,tar包文件的命令通常都是以.tar结尾的。生成tar包后,就可以用其它的程序来进  行压缩了,所以首先就来讲讲tar命令的基本用法:    tar命令的选项有很多(用man tar可以查看到),但常用的就那么几个选项,下面  来举例说明一下:    # tar -cf all.tar *.jpg   

2017-05-16 19:40:18 330

转载 user_agent

原文链接:http://blog.youkuaiyun.com/bone_ace/article/details/52476016 目录: Android:  Android 0.*  Android 1.*  Android 2.*  Android 3.*  Android 4.*Windows Phone OSBlackBerrySymbianOS:  SymbianOS 3

2017-03-21 10:55:58 1693

转载 ubuntu 16.04配置jdk环境

2、LINUX默认下载位置在当前家目录下的Download文件夹下,通过命令cd ~/Downloads即可查看到对应的文件。 3、通过命令tar -zxvf jdk-8u77-linux-x64.tar.gz到当前文件夹下(~/Downloads),如果解压过程出现以下的情况(下图中的后四行),就说明下载的JDK有问题,必须得重下!不然环境怎么写都没用。 4、然后使用命令切换

2017-02-23 17:00:53 522

原创 学习网址(python,机器学习)

http://blog.youkuaiyun.com/baiyuzhong2012/article/details/53883715 http://lib.youkuaiyun.com/base/machinelearning  (机器学习) http://lib.youkuaiyun.com/article/11/44486?knId=183 (python)

2017-01-06 15:10:26 322

转载 linux_查看cpu

转至:http://www.cnblogs.com/xd502djj/archive/2011/02/28/1967350.html linux 下查看机器是cpu是几核的 几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpuinfo |grep

2017-01-06 12:17:43 378

原创 linux_强行杀死进程

kill -s 9 PID  (PID进程号)

2016-12-06 16:35:36 2290

原创 linux命令_删除文件最后一行

//fileName 文件名 sed -i '$d' fileName

2016-12-02 14:25:19 37539 1

转载 IntelliJ IDEA 基本配置入门

http://blog.youkuaiyun.com/wangliqiang1014/article/details/43983387 前言:今天下载安装IntelliJ IDEA,随手创建了一个项目,执行Build提示错误。与大多数用于开发Java的IDE类似,不做任何配置,编译是不会成功的。因此我尝试对IDEA的配置进行了一点初步探索,顺手记下供同行参考。 1.JDK环境 目前大多数

2016-11-25 11:21:11 361

原创 linux命令——分割文件、合并文件

将AA文件分割为10M的多个BB_*文件 split -b 10m AA BB_ 将AA文件分割为多个文件,且每个文件只有1000行 split -l 1000 AA 多个BB_*文件合并成AA文件 cat BB_* >AA

2016-11-08 14:06:00 831

原创 pycharm_设置主题

file->Settings->Appearence->Theme(有三种可选)

2016-11-07 18:04:17 852

转载 python_nltk(包含很多自然语言语料)

古腾堡语料 路透社语料 布朗语料 网络和聊天文本

2016-11-03 10:25:17 535

转载 python_matplotlib.finance(例如,包含雅虎财经)

from matplotlib.finance import _quotes_historical_yahoo from datetime import date import pandas as pd today = date.today() start = (today.year-1,today.month,today.day) quotes = _quotes_historical_y

2016-11-03 10:18:32 3796

原创 python_array

http://old.sebug.net/paper/books/scipydoc/numpy_intro.html 1.numpy扩展库的简单使用 (1)ones import numpy as n arr = n.ones((3,4)) print arr ----

2016-11-02 15:41:02 417

转载 python_Ubuntu下安装numpy and matplotlib

Ubuntu下安装numpy and matplotlib   安装numpy相对简单,以下命令可以完成   apt-get install python-numpy apt-get install python-scipy   安装matplotlib相对复杂一些 需要先安装其依赖的包libpng和freetype 安装libpng:

2016-11-02 14:28:16 301

原创 python_元组

1.两元组关系 set1 = set('sunrise') set2 = set('sunset') print set1.issubset(set2) print set1.intersection(set2) print set1.difference(set2) set3 = set1.copy() print set3 -----------------------------

2016-11-02 13:59:05 327

原创 python_dict()字典

1.两个list组成字典 kList = ['a','b','c'] vList = [1,2,3] aDict = dict(zip(kList,vList)) print aDict 2.fromkeys生成字典 aDict = {}.fromkeys(['n','h','c'],0)=>{'h': 0, 'c': 0, 'n': 0}用该函数的第一个参数必须是一个序列,元组也可

2016-11-02 13:21:17 398

转载 python_多线程

http://www.jb51.net/article/55317.htm Python 的多线程有两种实现方法: 函数,线程类 1.函数 调用 thread 模块中的 start_new_thread() 函数来创建线程,以线程函数的形式告诉线程该做什么 复制代码代码如下: # -*- coding: utf-8 -*- import thr

2016-10-28 10:53:01 321

转载 linux_卸载和安装

转至 :  http://www.php100.com/html/webkaifa/Linux/2012/1113/11546.html 通过sudo apt-get install xxxx 安装软件后,总是无法卸载干净,这里以Apache 为例,提供方法: 首先sudo apt-get remove apache2 再sudo apt-get autoremove 最近在U

2016-10-27 11:08:36 428

原创 python_@符号

1.@符号会将后一个函数func2作为参数传给上一个函数func1,并且函数func2会被改变 例: def func0(): print '执行func0函数' def func1(func2): print "执行func1函数" # 调用函数func2() s = func2() print 's=%s' % s return s

2016-10-27 10:46:07 942

转载 python_压缩与解压zip

1.zip (1)压缩 import os import zipfile import sys import time #class zipfile.ZipFile(file[, mode[, compression[, allowZip64]]]) #创建一个ZipFile对象,表示一个zip文件。参数file表示文件的路径或类文件对象(file-like object);参数mode指示

2016-10-26 10:55:50 6382

转载 linux命令_压缩文件

linux压缩和解压缩命令大全 | 浏览:22504 | 更新:2014-12-31 17:44 | 标签:linux  tar命令   解包:tar zxvf FileName.tar   打包:tar czvf FileName.tar DirName gz命令   解压1:gunzip File

2016-10-24 17:21:17 284

原创 python _ 冒泡排序

array = [2,5,4,7,3,1,2] for i in range(len(array)-1 , 0, -1): # print i for j in range(0, i): # print j if array[j] > array[j + 1]: array[j], array[j + 1] = array[j

2016-10-24 17:04:14 272

原创 python list倒序排列

arr[::-1] 这种写法可以让函数倒序 例如: arr=[1,2,3] arr[::-1]=[3,2,1]

2016-10-24 15:51:16 2876

转载 python chr()和ord()

python chr()和ord() 2014年08月29日 ⁄ 综合 ⁄ 共 808字 ⁄ 字号 小 中 大 ⁄ 评论关闭 通过help 查看相关函数的帮助文档 >>>help (chr) chr(...)     chr(i) -> character         Return a string of one charac

2016-10-24 15:41:32 1689

转载 函数_callable(object)

callable(object) 中文说明:检查对象object是否可调用。如果返回True,object仍然可能调用失败;但如果返回False,调用对象ojbect绝对不会成功。 注意:类是可调用的,而类的实例实现了__call__()方法才可调用。 版本:该函数在python2.x版本中都可用。但是在python3.0版本中被移除,而在python3.2以后版本中被重新添加。

2016-10-24 14:08:50 326

转载 函数_getattr()

class A:        def __init__(self):            self.a = 'a'       def method(self):            print "method print"      a = A()    print getattr(a, 'a', 'default') #如果有属性a则打印a,否则打印defaul

2016-10-24 14:07:30 442

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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