- 博客(11)
- 资源 (4)
- 收藏
- 关注
原创 Python基础----排序(插入、冒泡、快速、归并)
# -*- coding:UTF-8 -*-def insert_sort(origin_list): sorted_list = [] for i in range(0, len(origin_list)): #print sorted_list if len(sorted_list) == 0: sorted_list.
2017-02-19 16:33:21 515
原创 ubuntu 下安装VM12
1、到VM官网下载Linux版本:http://www.vmware.com/products/workstation/workstation-evaluation.html2、下载完成在命令行修改为可执行,bundle文件sudo chmod +x VMxxxxxxxxxxxxxxxxxxx.bundle3、终端中输入命令:sudo ./VMxxxxxxxxx.bundle
2017-02-19 09:51:20 932
原创 Python基础----二分法查找
def binary_search(search_list, target): left = 0 right = len(search_list) - 1 while left <= right: mid = (left + right) / 2 if search_list[mid] < target: left =
2017-02-18 12:52:59 527
原创 python基础----实现队列
class Queue(object): def __init__(self): self.data_list = [] #定义一个字段(空数组) def init_queue(self): self.data_list = [] #初始化这个空数组 def insert(self, data): self.data_li
2017-02-18 10:56:14 393
原创 Python基础---习题
1、从1到100的和#!/usr/bin/python#-*- coding:UTF-8 -*-sum = 0for i in range(1, 101): sum = sum + iprint sum2、输出1到100中所有的质数def judge(x): for i in range(2, x): if x%i == 0:
2017-02-18 00:23:14 899
原创 GA统计相关
echo 'am broadcast -a com.android.vending.INSTALL_REFERRER -n "com.go.downloads/com.go.downloads.MainActivity.FileCountReceiver" --es "referrer" "utm_source=referrer=utm_source%3DFacebook";exit'am bro
2017-02-13 13:16:49 1479
原创 python基础--------模块
#-*- coding: UTF-8 -*-#同一个文件夹下可以直接import#import hello#from hello import print_hello#不在同一个文件夹下通过添加路径的方式引用import syssys.path.append('/home/focus/study/python/hello')from hello import print_hello
2017-02-12 18:03:53 277
原创 python基础-------类
class Human(object): def __init__(self, name): self.__name = name def walk(self): print self.__name + " is walking" def get_name(self): return self.__name def s
2017-02-12 17:32:36 312
原创 python学习-------list、tuple、set、dict
python中经常用的几种数据结构(容器),直接上代码。#-*- coding: UTF-8 -*-#list 可随意增删改查print "***********list**********"game = ["c++", "python", "shell"]print gameprint len(game)#查print game[0]print game[1]prin
2017-02-12 12:37:14 329
原创 python学习-----函数
直接贴代码了,以后复习可以翻看。 1#!/usr/bin/python 2 #-*-coding: UTF-8 -*- 3 4 #无参数 5 def print_hello(): 6 print "hello" 7 8 print_hello() 9 10 #带参数 11 def print_str(s): 12 print s 1
2017-02-12 11:52:33 613
ubuntu 切换java版本的shell脚本文件
2019-03-05
ubuntu 切换java版本profile文件
2019-03-05
ubuntu ban wa gong auto proxy pac file
2018-02-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人