上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
  2015年9月27日
摘要: // MyMakv.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"struct strategy { int state; int action; };// P 建立状态到行动的映射,P 即映射表strategy ... 阅读全文
posted @ 2015-09-27 20:34 HGonlyWJ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: // AntColony.cpp : 定义控制台应用程序的入口点。//#include #include #include #include#include #include #include #include using namespace std;#include #include ... 阅读全文
posted @ 2015-09-27 20:31 HGonlyWJ 阅读(285) 评论(0) 推荐(0) 编辑
摘要: // AntColony.cpp : 定义控制台应用程序的入口点。////#include "stdafx.h"#include #include #include #include #include #include #include using namespace std; //打... 阅读全文
posted @ 2015-09-27 20:28 HGonlyWJ 阅读(303) 评论(0) 推荐(0) 编辑
摘要: #!usr/bin/python#coding=utf-8import urllib2import sys, time, reimport sysimport jiebajieba.load_userdict("userdict.txt")import jieba.analyseimport jie... 阅读全文
posted @ 2015-09-27 20:25 HGonlyWJ 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8import obtainKeywordsimport sys, reimport chardet reload(sys)sys.setdefaultencoding("utf-8")# sys.setdefaultencoding('gb18030') #判断 文本(字符... 阅读全文
posted @ 2015-09-27 20:22 HGonlyWJ 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #!usr/bin/python#coding=utf-8import urllib2import sys, time, reimport sysimport chardet import jiebajieba.load_userdict("userdict.txt")import jieba.an... 阅读全文
posted @ 2015-09-27 20:22 HGonlyWJ 阅读(221) 评论(0) 推荐(0) 编辑
摘要: import osimport shutilimport reimport syssrc = "S:\\date\\before" #转换之前的文件夹,支持包含文件夹ddn = "S:\\date\\after" #转换之后的文件夹def ReadFileandSave... 阅读全文
posted @ 2015-09-27 20:21 HGonlyWJ 阅读(162) 评论(0) 推荐(0) 编辑
摘要: import syssys.path.append('../')import jiebaimport jieba.analysefrom optparse import OptionParserUSAGE = "博客园是一个面向开发者的知识分享社区。自创建以来,博客园一直致力并专注于为开发者打造一个... 阅读全文
posted @ 2015-09-27 20:19 HGonlyWJ 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #!usr/bin/python#coding=utf-8import os###########################################################################文件编码类型判断def obtainFileType(ff): im... 阅读全文
posted @ 2015-09-27 20:16 HGonlyWJ 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/pythonimport randomimport sysdef drawBoard(board): NLINE = " 1 2 3 4 5 6 7 8" HLINE = " +---+---+---+---+---+---+... 阅读全文
posted @ 2015-09-27 20:12 HGonlyWJ 阅读(264) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页

W3C中国
阮老师的网络日志
canvas
runoob
迷渡
并发编程网
原生JS例子
前端外刊评论