随笔分类 -  Originality

摘要:"""'17*x^2 - 16*|x|*y + 17*y^2 = 225'"""import numpy as npimport matplotlib.pyplot as pltX = np.arange(-5.0, 5.0, 0.1)Y = np.arange(-5.0, 5.0, 0.1)x, y = np.meshgrid(X, Y)f = 17 * x ** 2 - 16 * np.abs(x) * y + 17 * y ** 2 - 225fig = plt.figure()cs = plt.contour( 阅读全文
posted @ 2012-07-09 20:15 Yuangui 阅读(1446) 评论(4) 推荐(3) 编辑
摘要:from socket import *HOST = 'localhost'BUFSIZE = 1024PORT = 21567def client_socket(): ADDR = (HOST, PORT) tcpclisock = socket(AF_INET, SOCK_STREAM) tcpclisock.connect(ADDR) while True: data = raw_input('>') if not data: break tcpclisock.send(data) da... 阅读全文
posted @ 2012-05-31 17:31 Yuangui 阅读(198) 评论(0) 推荐(0) 编辑
摘要:Git 在Windows下安装过程详情参见:http://help.github.com/win-set-up-git/首先需要注册注册网站:https://github.com/然后需要一个public key1、在~/.ssh目录下执行2、在本机住创建一个目录(algorithm)3、初始化 阅读全文
posted @ 2012-05-19 19:25 Yuangui 阅读(156) 评论(0) 推荐(0) 编辑