1.git init 这个命令把这个目录变成Git可以管理的仓库(在目录里边创建,而且会生成一个.git的隐藏目录)2.git config user.name "someone" 设置用户3.git config user.email "someone@som...
分类:
其他好文 时间:
2015-10-05 15:34:33
阅读次数:
132
在慕课网学习课程"Python操作MySQL数据库",安装"MySQLdb"时遇到问题.先是找错地方: 百度搜索"Mysql for Python",第一个链接是到"mysql"官网"http://dev.mysql.com/downloads/connector/python/",下载下来的msi...
分类:
数据库 时间:
2015-10-05 13:00:10
阅读次数:
229
给程序加上控制台菜单menu.pyimport sysfrom notebook import Notebook, Noteclass Menu: '''Display a menu and respond to choices when run.''' def __init__(sel...
分类:
编程语言 时间:
2015-10-05 12:53:52
阅读次数:
243
#-*-coding=utf-8-*-
#__author__=‘sanr‘
#__email__=‘5754190@qq.com‘
#__url__=‘http://0x007.blog.51cto.com/‘
#__version__=‘0.2‘
importrequests
importre
fromthreadingimportThread,Lock
importtime
importsys
importchardet
importnetaddr
importstruct
importsocket
..
分类:
Web程序 时间:
2015-10-05 11:47:10
阅读次数:
262
QUESTION NO: 101
Note the output of the following query;
SQL> SELECT flashback_archieve_name, status FROM dba_flashback_archieve;FLASHBACK_ARCHIEVE_NAME STATUS FLA1
You executed the following comma...
分类:
其他好文 时间:
2015-10-05 11:43:55
阅读次数:
158
先分别创建三张表:think_user think_group think_user_groupuser 表里有userid、username字段group 表里有groupid、email字段user_group 表里有uid、gid字段user_group 表里的uid、gid字段都作为主键然后...
分类:
其他好文 时间:
2015-10-05 11:42:20
阅读次数:
127
# -*- coding: utf-8 -*-"""Created on Sun Oct 4 15:57:46 2015@author: keithguofan"""import randomfrom PIL import Image,ImageDraw,ImageFontimport math,....
分类:
编程语言 时间:
2015-10-05 11:40:09
阅读次数:
149
1、动机2、基于内容的分类器3、python实现一、动机在前面的文章中介绍了基于用户和基于物品的协同过滤推荐方法,其实无论是基于用户还是基于物品,都是通过群体效应来进行推荐,因为衡量相似度的向量都是基于一定群体用户的评分,所以推荐出来的物品都是热门的流行的物品,对于一些冷门物品可能就无法收到亲睐。而...
分类:
其他好文 时间:
2015-10-05 11:34:11
阅读次数:
336
《设计模式》一书总结了23个模式,依据各自的目的又被分为创建型模式(creational pattern)、结构型模式(structural pattern)和行为型模式(behavioral patterns),它们分别从对象的创建,对象和对象间的结构关系以及对象之间如何交互这三个方面入手,对面向...
分类:
编程语言 时间:
2015-10-05 11:31:57
阅读次数:
126
很早以前研究过C#和C++的网络通信,Python网络编程也类似。同时最近找工作笔试面试考察Socket套接字、TCP\UDP区别比较多,所以这篇文章主要精简了《Python核心编程(第二版)》第16章内容。内容包括:服务器和客户端架构、套接字Socket、TCP\UDP通信实例和常见笔试考题。文章有详细的原理及代码和运行结果,希望文章对你有所帮助,如果有不足之处,还请海涵~...
分类:
编程语言 时间:
2015-10-05 09:19:52
阅读次数:
382