- 博客(26)
- 收藏
- 关注
转载 压缩_解压 命令
Linux下最常用的打包程序就是tar了,使用tar程序打出来的包我们常称为tar包,tar包文件的命令通常都是以.tar结尾的。生成tar包后,就可以用其它的程序来进 行压缩了,所以首先就来讲讲tar命令的基本用法: tar命令的选项有很多(用man tar可以查看到),但常用的就那么几个选项,下面 来举例说明一下: # tar -cf all.tar *.jpg
2017-05-16 19:40:18 256
转载 user_agent
原文链接:http://blog.csdn.net/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 1471
转载 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 387
原创 学习网址(python,机器学习)
http://blog.csdn.net/baiyuzhong2012/article/details/53883715http://lib.csdn.net/base/machinelearning (机器学习)http://lib.csdn.net/article/11/44486?knId=183 (python)
2017-01-06 15:10:26 257
转载 linux_查看cpu
转至:http://www.cnblogs.com/xd502djj/archive/2011/02/28/1967350.htmllinux 下查看机器是cpu是几核的几个cpumore /proc/cpuinfo |grep "physical id"|uniq|wc -l每个cpu是几核(假设cpu配置相同)more /proc/cpuinfo |grep
2017-01-06 12:17:43 271
转载 IntelliJ IDEA 基本配置入门
http://blog.csdn.net/wangliqiang1014/article/details/43983387前言:今天下载安装IntelliJ IDEA,随手创建了一个项目,执行Build提示错误。与大多数用于开发Java的IDE类似,不做任何配置,编译是不会成功的。因此我尝试对IDEA的配置进行了一点初步探索,顺手记下供同行参考。1.JDK环境目前大多数
2016-11-25 11:21:11 275
原创 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 670
转载 python_matplotlib.finance(例如,包含雅虎财经)
from matplotlib.finance import _quotes_historical_yahoofrom datetime import dateimport pandas as pdtoday = date.today()start = (today.year-1,today.month,today.day)quotes = _quotes_historical_y
2016-11-03 10:18:32 3623
原创 python_array
http://old.sebug.net/paper/books/scipydoc/numpy_intro.html1.numpy扩展库的简单使用(1)ones import numpy as narr = n.ones((3,4))print arr----
2016-11-02 15:41:02 308
转载 python_Ubuntu下安装numpy and matplotlib
Ubuntu下安装numpy and matplotlib 安装numpy相对简单,以下命令可以完成 apt-get install python-numpyapt-get install python-scipy 安装matplotlib相对复杂一些需要先安装其依赖的包libpng和freetype安装libpng:
2016-11-02 14:28:16 216
原创 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 253
原创 python_dict()字典
1.两个list组成字典kList = ['a','b','c']vList = [1,2,3]aDict = dict(zip(kList,vList))print aDict2.fromkeys生成字典aDict = {}.fromkeys(['n','h','c'],0)=>{'h': 0, 'c': 0, 'n': 0}用该函数的第一个参数必须是一个序列,元组也可
2016-11-02 13:21:17 328
转载 python_多线程
http://www.jb51.net/article/55317.htmPython 的多线程有两种实现方法:函数,线程类1.函数调用 thread 模块中的 start_new_thread() 函数来创建线程,以线程函数的形式告诉线程该做什么复制代码代码如下:# -*- coding: utf-8 -*-import thr
2016-10-28 10:53:01 205
转载 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 341
原创 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 800
转载 python_压缩与解压zip
1.zip(1)压缩import osimport zipfileimport sysimport time#class zipfile.ZipFile(file[, mode[, compression[, allowZip64]]])#创建一个ZipFile对象,表示一个zip文件。参数file表示文件的路径或类文件对象(file-like object);参数mode指示
2016-10-26 10:55:50 6212
转载 linux命令_压缩文件
linux压缩和解压缩命令大全|浏览:22504|更新:2014-12-31 17:44|标签:linux tar命令 解包:tar zxvf FileName.tar 打包:tar czvf FileName.tar DirNamegz命令 解压1:gunzip File
2016-10-24 17:21:17 211
原创 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 195
转载 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 1588
转载 函数_callable(object)
callable(object)中文说明:检查对象object是否可调用。如果返回True,object仍然可能调用失败;但如果返回False,调用对象ojbect绝对不会成功。注意:类是可调用的,而类的实例实现了__call__()方法才可调用。版本:该函数在python2.x版本中都可用。但是在python3.0版本中被移除,而在python3.2以后版本中被重新添加。
2016-10-24 14:08:50 226
转载 函数_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 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人