自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

targetcloud

https://github.com/targetcloud thanks your star

  • 博客(5)
  • 收藏
  • 关注

原创 python(五)二叉树

# coding:utf-8 import random class Node(object): def __init__(self, item): self.elem = item self.lchild = None self.rchild = None class Tree(object): def __init__(s

2017-09-30 20:14:33 487

原创 python(四)二分查找法

# coding:utf-8 import random import time def sort(alist, first, last): if first >= last: return mid_value = alist[first] low = first high = last while low < high:

2017-09-30 19:55:16 535

原创 python(三)6种排序算法性能比较(冒泡、选择、插入、希尔、快速、归并)

# coding:utf-8 import random import time def bubble_sort(alist): """冒泡""" n = len(alist) for j in range(n-1): count = 0 for i in range(0, n-1-j): if alist[i]

2017-09-30 19:28:10 650 1

原创 python(二)mac环境(macOS10.12.6)下的python3.6使用mysql

首先到mysql官网下载最新版mysql : mysql-5.7.19-macos10.12-x86_64.dmg 双击下一下,中间过程中记录下密码(类似这样的一串:4nf6WXPB#!nj),用于后面更改 进入系统偏好设置启动mysql vim ~/.bash_profile加入path source ~/.bash_profil

2017-09-30 16:14:29 710

原创 python(一)简单WEB服务器

# coding:utf-8 import socket import re import sys from multiprocessing import Process # from TGWebFramework import app # from Django import appHTML_ROOT_DIR = "./html"class HTTPServer(object): def _

2017-09-17 22:14:43 548

空空如也

空空如也

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

TA关注的人

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