第 0024 题: 使用 Python 的 Web 框架,做一个 Web 版本 TodoList 应用。
+
+
+
+
+
+
第 0025 题: 使用 Python 实现:对着电脑吼一声,自动打开浏览器中的默认网站。
+
+
例如,对着笔记本电脑吼一声“百度”,浏览器自动打开百度首页。
+
+关键字:Speech to Text
+
+
+
参考思路:
+1:获取电脑录音-->WAV文件
+ python record wav
+
+
2:录音文件-->文本
+
+
STT: Speech to Text
+
+STT API Google API
+
+
+
3:文本-->电脑命令
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Something went wrong with that request. Please try again.
+
+
+
+
+
+
+
+
+
+ You signed in with another tab or window. Reload to refresh your session.
+ You signed out in another tab or window. Reload to refresh your session.
+
第 0024 题: 使用 Python 的 Web 框架,做一个 Web 版本 TodoList 应用。
+
+
+
+
+
+
第 0025 题: 使用 Python 实现:对着电脑吼一声,自动打开浏览器中的默认网站。
+
+
例如,对着笔记本电脑吼一声“百度”,浏览器自动打开百度首页。
+
+关键字:Speech to Text
+
+
+
参考思路:
+1:获取电脑录音-->WAV文件
+ python record wav
+
+
2:录音文件-->文本
+
+
STT: Speech to Text
+
+STT API Google API
+
+
+
3:文本-->电脑命令
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Something went wrong with that request. Please try again.
+
+
+
+
+
+
+
+
+
+ You signed in with another tab or window. Reload to refresh your session.
+ You signed out in another tab or window. Reload to refresh your session.
+
+
+
+
+
\ No newline at end of file
diff --git a/Jaccorot/0010/0010.py b/Jaccorot/0010/0010.py
new file mode 100644
index 00000000..21b9a422
--- /dev/null
+++ b/Jaccorot/0010/0010.py
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+#coding=utf-8
+
+"""
+
+第 0010 题:使用 Python 生成字母验证码图片
+
+"""
+
+from PIL import Image, ImageDraw, ImageFont, ImageFilter
+import random
+
+IMAGE_MODE = 'RGB'
+IMAGE_BG_COLOR = (255,255,255)
+Image_Font = 'arial.ttf'
+text = ''.join(random.sample('abcdefghijklmnopqrstuvwxyz\
+ABCDEFGHIJKLMNOPQRSTUVWXYZ',4))
+
+def colorRandom():
+ return (random.randint(32,127),random.randint(32,127),random.randint(32,127))
+
+
+#change 噪点频率(%)
+def create_identifying_code(strs, width=400, height=200, chance=2):
+ im = Image.new(IMAGE_MODE, (width, height), IMAGE_BG_COLOR)
+ draw = ImageDraw.Draw(im)
+ #绘制背景噪点
+ for w in xrange(width):
+ for h in xrange(height):
+ if chance < random.randint(1, 100):
+ draw.point((w, h), fill=colorRandom())
+
+ font = ImageFont.truetype(Image_Font, 80)
+ font_width, font_height = font.getsize(strs)
+ strs_len = len(strs)
+ x = (width - font_width)/2
+ y = (height - font_height)/2
+ #逐个绘制文字
+ for i in strs:
+ draw.text((x,y), i, colorRandom(), font)
+ x += font_width/strs_len
+ #模糊
+ im = im.filter(ImageFilter.BLUR)
+ im.save('identifying_code_pic.jpg')
+
+
+if __name__ == '__main__':
+ create_identifying_code(text)
diff --git a/Jaccorot/0010/arial.ttf b/Jaccorot/0010/arial.ttf
new file mode 100644
index 00000000..2107596f
Binary files /dev/null and b/Jaccorot/0010/arial.ttf differ
diff --git a/Jaccorot/0010/identifying_code_pic.jpg b/Jaccorot/0010/identifying_code_pic.jpg
new file mode 100644
index 00000000..61a33564
Binary files /dev/null and b/Jaccorot/0010/identifying_code_pic.jpg differ
diff --git a/Jaccorot/0011/0011.py b/Jaccorot/0011/0011.py
new file mode 100644
index 00000000..0d9d3bca
--- /dev/null
+++ b/Jaccorot/0011/0011.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0011 题: 敏感词文本文件 filtered_words.txt,里面的内容为以下内容,当用户输入敏感词语时,则打印出 Freedom,
+否则打印出 Human Rights。
+"""
+
+
+def trans_to_words():
+ type_in = raw_input(">")
+ judge_flag = False
+ with open('filtered_words.txt') as f:
+ text = f.read().decode('utf-8').encode('gbk')
+
+ for i in text.split("\n"):
+ if i in type_in:
+ judge_flag = True
+
+ if judge_flag:
+ print "Freedom"
+ else:
+ print "Human Rights"
+
+
+if __name__ == "__main__":
+ while True:
+ trans_to_words()
diff --git a/Jaccorot/0011/filtered_words.txt b/Jaccorot/0011/filtered_words.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/Jaccorot/0011/filtered_words.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/Jaccorot/0012/0012.py b/Jaccorot/0012/0012.py
new file mode 100644
index 00000000..dae4d5e9
--- /dev/null
+++ b/Jaccorot/0012/0012.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0012 题: 敏感词文本文件 filtered_words.txt,里面的内容 和 0011题一样,
+当用户输入敏感词语,则用 星号 * 替换,例如当用户输入「北京是个好城市」,则变成「**是个好城市」。
+"""
+
+
+def trans_to_words():
+ type_in = raw_input(">")
+ with open('filtered_words.txt') as f:
+ text = f.read().decode('utf-8').encode('gbk')
+ print text.split("\n")
+ for i in text.split("\n"):
+ if i in type_in:
+ type_in = type_in.replace(i, '**')
+ print type_in
+
+if __name__ == "__main__":
+ while True:
+ trans_to_words()
diff --git a/Jaccorot/0012/filtered_words.txt b/Jaccorot/0012/filtered_words.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/Jaccorot/0012/filtered_words.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/Jaccorot/0013/0013.py b/Jaccorot/0013/0013.py
new file mode 100644
index 00000000..ad340a09
--- /dev/null
+++ b/Jaccorot/0013/0013.py
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0013 题: 用 Python 写一个爬图片的程序,爬 这个链接里的日本妹子图片 :-)
+"""
+
+import os
+import urllib
+from bs4 import BeautifulSoup
+from urlparse import urlsplit
+
+
+def catch_tieba_pics(url):
+ content = urllib.urlopen(url)
+ bs = BeautifulSoup(content, 'lxml')
+ for i in bs.find_all('img', {"class": "BDE_Image"}):
+ download_pic(i['src'])
+
+
+def download_pic(url):
+ image_content = urllib.urlopen(url).read()
+ file_name = os.path.basename(urlsplit(url)[2])
+ output = open(file_name, 'wb')
+ output.write(image_content)
+ output.close()
+
+
+if __name__ == '__main__':
+ catch_tieba_pics('http://tieba.baidu.com/p/2166231880')
diff --git a/Jaccorot/0014/0014.py b/Jaccorot/0014/0014.py
new file mode 100644
index 00000000..5eaa5b05
--- /dev/null
+++ b/Jaccorot/0014/0014.py
@@ -0,0 +1,42 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0014 题: 纯文本文件 student.txt为学生信息, 里面的内容(包括花括号)如下所示,
+请将上述内容写到 student.xls 文件中,如下图所示:
+"""
+
+import os
+import json
+import xlwt
+
+def read_txt(path):
+ with open(path, 'r') as f:
+ text = f.read().decode('utf-8')
+ text_json = json.loads(text)
+ return text_json
+
+
+def save_into_excel(content_dict, excel_name):
+ wb = xlwt.Workbook()
+ ws = wb.add_sheet("student", cell_overwrite_ok=True)
+ row = 0
+ col = 0
+
+ for k, v in sorted(content_dict.items(),key=lambda d:d[0]):
+ ws.write(row, col, k)
+ for i in v:
+ col += 1
+ ws.write(row, col, i)
+
+ row += 1
+ col = 0
+
+ wb.save(excel_name)
+
+
+if __name__ == "__main__":
+ read_content = read_txt(os.path.join(os.path.split(__file__)[0], 'student.txt'))
+ save_into_excel(read_content, 'student.xls')
+
+
diff --git a/JiYouMCC/0014/student.txt b/Jaccorot/0014/student.txt
similarity index 100%
rename from JiYouMCC/0014/student.txt
rename to Jaccorot/0014/student.txt
diff --git a/Jaccorot/0015/0015.py b/Jaccorot/0015/0015.py
new file mode 100644
index 00000000..113927c3
--- /dev/null
+++ b/Jaccorot/0015/0015.py
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+纯文本文件 city.txt为城市信息, 里面的内容(包括花括号)如下所示:
+请将上述内容写到 city.xls 文件中,如下图所示:
+"""
+
+import os
+import json
+import xlwt
+
+def read_txt(path):
+ with open(path, 'r') as f:
+ text = f.read().decode('utf-8')
+ text_json = json.loads(text)
+ return text_json
+
+
+def save_into_excel(content_dict, excel_name):
+ wb = xlwt.Workbook()
+ ws = wb.add_sheet("city", cell_overwrite_ok=True)
+ row = 0
+ col = 0
+
+ for k, v in sorted(content_dict.items(),key=lambda d:d[0]):
+ ws.write(row, col, k)
+ col += 1
+ ws.write(row, col, v)
+
+ row += 1
+ col = 0
+
+ wb.save(excel_name)
+
+
+if __name__ == "__main__":
+ read_content = read_txt(os.path.join(os.path.split(__file__)[0], 'city.txt'))
+ save_into_excel(read_content, 'city.xls')
diff --git a/JiYouMCC/0015/city.txt b/Jaccorot/0015/city.txt
similarity index 100%
rename from JiYouMCC/0015/city.txt
rename to Jaccorot/0015/city.txt
diff --git a/Jaccorot/0016/0016.py b/Jaccorot/0016/0016.py
new file mode 100644
index 00000000..c0fe6620
--- /dev/null
+++ b/Jaccorot/0016/0016.py
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+ 纯文本文件 numbers.txt, 里面的内容(包括方括号)如下所示:
+请将上述内容写到 numbers.xls 文件中,如下图所示:
+"""
+
+import os
+import json
+import xlwt
+
+def read_txt(path):
+ with open(path, 'r') as f:
+ text = f.read().decode('utf-8')
+ text_json = json.loads(text)
+ return text_json
+
+
+def save_into_excel(content_dict, excel_name):
+ wb = xlwt.Workbook()
+ ws = wb.add_sheet("numbers", cell_overwrite_ok=True)
+ row = 0
+ col = 0
+ for i in content_dict:
+ for k in i:
+ ws.write(row, col, k)
+ col += 1
+ row += 1
+ col = 0
+
+ wb.save(excel_name)
+
+
+if __name__ == "__main__":
+ read_content = read_txt(os.path.join(os.path.split(__file__)[0], 'numbers.txt'))
+ save_into_excel(read_content, 'numbers.xls')
diff --git a/Jaccorot/0016/numbers.txt b/Jaccorot/0016/numbers.txt
new file mode 100644
index 00000000..c43c0378
--- /dev/null
+++ b/Jaccorot/0016/numbers.txt
@@ -0,0 +1,5 @@
+[
+ [1, 82, 65535],
+ [20, 90, 13],
+ [26, 809, 1024]
+]
\ No newline at end of file
diff --git a/Jaccorot/0017/0017.py b/Jaccorot/0017/0017.py
new file mode 100644
index 00000000..335c94bc
--- /dev/null
+++ b/Jaccorot/0017/0017.py
@@ -0,0 +1,50 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0017 题: 将 第 0014 题中的 student.xls 文件中的内容写到 student.xml 文件中,如
+
+下所示:
+
+
+
+
+
+{
+ "1" : ["张三", 150, 120, 100],
+ "2" : ["李四", 90, 99, 95],
+ "3" : ["王五", 60, 66, 68]
+}
+
+
+"""
+
+import xlrd
+import json
+from lxml import etree
+
+
+def read_exl(file_name):
+ exl = xlrd.open_workbook(file_name)
+ exl_sheet = exl.sheet_by_name('student')
+ data = {}
+ for i in range(exl_sheet.nrows):
+ data[exl_sheet.row_values(i)[0]] = exl_sheet.row_values(i)[1:]
+ return json.dumps(data, encoding='utf-8')
+
+def save_to_xml(data, new_file_name):
+ root = etree.Element('root')
+ students = etree.SubElement(root, 'students')
+ students.append(etree.Comment(u"""学生信息表 "id" : [名字, 数学, 语文, 英文]"""))
+ students.text = data
+
+ student_xml = etree.ElementTree(root)
+ student_xml.write(new_file_name, pretty_print=True, xml_declaration=True, encoding='utf-8')
+
+
+if __name__ == '__main__':
+ content = read_exl('student.xls')
+ save_to_xml(content, 'student.xml')
diff --git a/Jaccorot/0017/student.xls b/Jaccorot/0017/student.xls
new file mode 100644
index 00000000..7d5717d8
Binary files /dev/null and b/Jaccorot/0017/student.xls differ
diff --git a/Jaccorot/0017/student.xml b/Jaccorot/0017/student.xml
new file mode 100644
index 00000000..afc2e49e
--- /dev/null
+++ b/Jaccorot/0017/student.xml
@@ -0,0 +1,4 @@
+
+
+ {"1": ["\u5f20\u4e09", 150.0, 120.0, 100.0], "3": ["\u738b\u4e94", 60.0, 66.0, 68.0], "2": ["\u674e\u56db", 90.0, 99.0, 95.0]}
+
diff --git a/Jaccorot/0018/0018.py b/Jaccorot/0018/0018.py
new file mode 100644
index 00000000..bbdaddd2
--- /dev/null
+++ b/Jaccorot/0018/0018.py
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0018 题: 将 第 0015 题中的 city.xls 文件中的内容写到 city.xml 文件中,如下所示:
+
+
+
+
+
+{
+ "1" : "上海",
+ "2" : "北京",
+ "3" : "成都"
+}
+
+
+"""
+
+import xlrd
+import json
+from lxml import etree
+
+
+def read_exl(file_name):
+ exl = xlrd.open_workbook(file_name)
+ exl_sheet = exl.sheet_by_name('city')
+ data = {}
+ for i in range(exl_sheet.nrows):
+ data[exl_sheet.row_values(i)[0]] = exl_sheet.row_values(i)[1]
+ return json.dumps(data, encoding='utf-8')
+
+def save_to_xml(data, new_file_name):
+ root = etree.Element('root')
+ students = etree.SubElement(root, 'citys')
+ students.append(etree.Comment(u"""城市信息"""))
+ students.text = data
+
+ student_xml = etree.ElementTree(root)
+ student_xml.write(new_file_name, pretty_print=True, xml_declaration=True, encoding='utf-8')
+
+
+if __name__ == '__main__':
+ content = read_exl('city.xls')
+ save_to_xml(content, 'city.xml')
diff --git a/Jaccorot/0018/city.xls b/Jaccorot/0018/city.xls
new file mode 100644
index 00000000..ef48fed2
Binary files /dev/null and b/Jaccorot/0018/city.xls differ
diff --git a/Jaccorot/0018/city.xml b/Jaccorot/0018/city.xml
new file mode 100644
index 00000000..14186a8c
--- /dev/null
+++ b/Jaccorot/0018/city.xml
@@ -0,0 +1,4 @@
+
+
+ {"1": "\u4e0a\u6d77", "3": "\u6210\u90fd", "2": "\u5317\u4eac"}
+
diff --git a/Jaccorot/0019/0019.py b/Jaccorot/0019/0019.py
new file mode 100644
index 00000000..4112b3ad
--- /dev/null
+++ b/Jaccorot/0019/0019.py
@@ -0,0 +1,52 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0019 题: 将 第 0016 题中的 numbers.xls 文件中的内容写到 numbers.xml 文件中,如下
+
+所示:
+
+
+
+
+
+
+[
+ [1, 82, 65535],
+ [20, 90, 13],
+ [26, 809, 1024]
+]
+
+
+
+"""
+
+import xlrd
+import json
+from lxml import etree
+
+
+def read_exl(file_name):
+ exl = xlrd.open_workbook(file_name)
+ exl_sheet = exl.sheet_by_name('numbers')
+ data = []
+ for i in range(exl_sheet.nrows):
+ temp = [int(x) for x in exl_sheet.row_values(i) ]
+ data.append(temp)
+ return json.dumps(data, encoding='utf-8')
+
+def save_to_xml(data, new_file_name):
+ root = etree.Element('root')
+ students = etree.SubElement(root, 'numbers')
+ students.append(etree.Comment(u"""数字信息"""))
+ students.text = data
+
+ student_xml = etree.ElementTree(root)
+ student_xml.write(new_file_name, pretty_print=True, xml_declaration=True, encoding='utf-8')
+
+
+if __name__ == '__main__':
+ content = read_exl('numbers.xls')
+ save_to_xml(content, 'numbers.xml')
diff --git a/Jaccorot/0019/numbers.xls b/Jaccorot/0019/numbers.xls
new file mode 100644
index 00000000..769bb4a1
Binary files /dev/null and b/Jaccorot/0019/numbers.xls differ
diff --git a/Jaccorot/0019/numbers.xml b/Jaccorot/0019/numbers.xml
new file mode 100644
index 00000000..1ba54401
--- /dev/null
+++ b/Jaccorot/0019/numbers.xml
@@ -0,0 +1,4 @@
+
+
+ [[1, 82, 65535], [20, 90, 13], [26, 809, 1024]]
+
diff --git a/Jaccorot/0020/0020.py b/Jaccorot/0020/0020.py
new file mode 100644
index 00000000..336126eb
--- /dev/null
+++ b/Jaccorot/0020/0020.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# coding=utf-8
+
+"""
+第 0020 题: 登陆中国联通网上营业厅 后选择「自助服务」 --> 「详单查询」,然后选择你要查询的时间段,
+点击「查询」按钮,查询结果页面的最下方,点击「导出」,就会生成类似于 2014年10月01日~2014年10月31日
+通话详单.xls 文件。写代码,对每月通话时间做个统计。
+"""
+
+import xlrd
+
+def count_the_dail_time(filename):
+ excel = xlrd.open_workbook(filename)
+ sheet = excel.sheet_by_index(0)
+ row_nums = sheet.nrows
+ col_nums = sheet.ncols
+ total_time = 0
+ for i in range(1,row_nums):
+ total_time += int(sheet.cell_value(i, 3))
+ return total_time
+
+
+if __name__ == "__main__":
+ total_len = count_the_dail_time("src.xls")
+ print "本月通话时长为" + total_len + "秒"
diff --git a/Jaccorot/0020/src.xls b/Jaccorot/0020/src.xls
new file mode 100644
index 00000000..3eb2fb39
Binary files /dev/null and b/Jaccorot/0020/src.xls differ
diff --git a/Jaccorot/0021/0021.python b/Jaccorot/0021/0021.python
new file mode 100644
index 00000000..ed78b95c
--- /dev/null
+++ b/Jaccorot/0021/0021.python
@@ -0,0 +1,32 @@
+#!/usr/bin/python
+# coding=utf-8
+__author__ = 'Jaccorot'
+
+import os
+from hashlib import sha256
+from hmac import HMAC
+
+def encrypt_password(password, salt=None):
+ if salt is None:
+ salt = os.urandom(8)
+ assert 8 == len(salt)
+ assert isinstance(salt, str)
+
+ if isinstance(password, unicode):
+ password = password.encode('utf-8')
+ assert isinstance(password, str)
+
+ for i in range(10):
+ encrypted = HMAC(password, salt, sha256).digest()
+ return salt + encrypted
+
+
+def validate_password(hashed, password):
+ return hashed == encrypt_password(password, hashed[:8])
+
+
+if __name__ == "__main__":
+ password_new = raw_input("Set your password\n")
+ password_saved = encrypt_password(password_new)
+ password_again = raw_input("Now,type in your password\n")
+ print "Yes,you got it." if validate_password(password_saved, password_again) else "No,it's wrong."
diff --git a/Jaccorot/0022/0.jpg b/Jaccorot/0022/0.jpg
new file mode 100644
index 00000000..82d17e99
Binary files /dev/null and b/Jaccorot/0022/0.jpg differ
diff --git a/Jaccorot/0022/0022.py b/Jaccorot/0022/0022.py
new file mode 100644
index 00000000..f817057b
--- /dev/null
+++ b/Jaccorot/0022/0022.py
@@ -0,0 +1,40 @@
+#!/usr/local/bin/python
+#coding=utf-8
+
+"""
+第 0022 题: iPhone 6、iPhone 6 Plus 早已上市开卖。请查看你写得 第 0005 题的代码是否可以复用。
+"""
+import os
+from PIL import Image
+
+PHONE = {'iPhone5':(1136,640), 'iPhone6':(1134,750), 'iPhone6P':(2208,1242)}
+
+
+def resize_pic(path, new_path, phone_type):
+ im = Image.open(path)
+ w,h = im.size
+
+ width,height = PHONE[phone_type]
+
+ if w > width:
+ h = width * h // w
+ w = width
+ if h > height:
+ w = height * w // h
+ h = height
+
+ im_resized = im.resize((w,h), Image.ANTIALIAS)
+ im_resized.save(new_path)
+
+
+def walk_dir_and_resize(path, phone_type):
+ for root, dirs, files in os.walk(path):
+ for f_name in files:
+ if f_name.lower().endswith('jpg'):
+ path_dst = os.path.join(root,f_name)
+ f_new_name = phone_type + '_' + f_name
+ resize_pic(path=path_dst, new_path=f_new_name , phone_type=phone_type)
+
+
+if __name__ == '__main__':
+ walk_dir_and_resize('./', 'iPhone6')
diff --git a/Jaccorot/0023/guestbook.db b/Jaccorot/0023/guestbook.db
new file mode 100644
index 00000000..a693ad0b
Binary files /dev/null and b/Jaccorot/0023/guestbook.db differ
diff --git a/Jaccorot/0023/guestbook.py b/Jaccorot/0023/guestbook.py
new file mode 100644
index 00000000..be75c839
--- /dev/null
+++ b/Jaccorot/0023/guestbook.py
@@ -0,0 +1,75 @@
+import sqlite3
+from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash
+from contextlib import closing
+import time
+
+DATABASE = 'guestbook.db'
+DEBUG = True
+SECRET_KEY = 'development key'
+
+app = Flask(__name__)
+app.config.from_object(__name__)
+
+def connect_db():
+ return sqlite3.connect(app.config['DATABASE'])
+
+def init_db():
+ with closing(connect_db()) as db:
+ with app.open_resource('schema.sql', mode='r') as f:
+ db.cursor().executescript(f.read())
+ db.commit()
+
+@app.before_request
+def before_request():
+ g.db = connect_db()
+
+@app.teardown_request
+def teardown_request(exception):
+ db = getattr(g, 'db', None)
+ if db is not None:
+ db.close()
+ g.db.close()
+
+
+@app.route('/')
+def show_entires():
+ cur = g.db.execute('select name,text,time from entries order by id desc')
+ entries = [dict(name=row[0], text=row[1], time=row[2]) for row in cur.fetchall()]
+ for i in entries:
+ print i
+ return render_template('show_entries.html', entries=entries)
+
+@app.route('/add', methods=['POST'])
+def add_entry():
+ if not session.get('logged_in'):
+ abort(401)
+ current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
+ g.db.execute('insert into entries (name, text, time) values (?, ?, ?)',
+ [request.form['name'], request.form['text'], current_time])
+ g.db.commit()
+ flash('New entry was successfully posted')
+ return redirect(url_for('show_entires'))
+
+@app.route('/login', methods=['GET', 'POST'])
+def login():
+ error = None
+ if request.method == 'POST':
+ if request.form['username'] is None:
+ error = "Invalid username"
+ else:
+ session['logged_in'] = True
+ session['name'] = request.form['username']
+ flash('You were logged in')
+ return redirect(url_for('show_entires'))
+ return render_template('login.html', error=error)
+
+@app.route('/logout')
+def logout():
+ session.pop('logged_in', None)
+ flash('You were logged out')
+ return redirect(url_for('show_entires'))
+
+
+
+if __name__ == "__main__":
+ app.run()
diff --git a/Jaccorot/0023/schema.sql b/Jaccorot/0023/schema.sql
new file mode 100644
index 00000000..37d58baa
--- /dev/null
+++ b/Jaccorot/0023/schema.sql
@@ -0,0 +1,7 @@
+DROP TABLE if EXISTS entries;
+CREATE TABLE entries(
+ id INTEGER PRIMARY KEY autoincrement,
+ name text NOT NULL ,
+ text text NOT NULL,
+ time datetime NOT NULL
+);
\ No newline at end of file
diff --git a/Jaccorot/0023/static/style.css b/Jaccorot/0023/static/style.css
new file mode 100644
index 00000000..dbdb6f65
--- /dev/null
+++ b/Jaccorot/0023/static/style.css
@@ -0,0 +1,19 @@
+body { font-family: sans-serif; background: #eee; }
+a, h1, h2 { color: #377ba8; }
+h1, h2 { font-family: 'Georgia', serif; margin: 0; }
+h1 { border-bottom: 2px solid #eee; }
+h2 { font-size: 1.2em; }
+
+.page { margin: 2em auto; width: 35em; border: 5px solid #ccc;
+ padding: 0.8em; background: white; }
+.entries { list-style: none; margin: 0; padding: 0; }
+.entries li { margin: 0.8em 1.2em; }
+.entries li h2 { margin-left: -1em; }
+.add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; }
+.add-entry dl { font-weight: bold; }
+.metanav { text-align: right; font-size: 0.8em; padding: 0.3em;
+ margin-bottom: 1em; background: #fafafa; }
+.flash { background: #cee5F5; padding: 0.5em;
+ border: 1px solid #aacbe2; }
+.error { background: #f0d6d6; padding: 0.5em; }
+.time { text-align:right; }
\ No newline at end of file
diff --git a/Jaccorot/0023/templates/layout.html b/Jaccorot/0023/templates/layout.html
new file mode 100644
index 00000000..94cfdc84
--- /dev/null
+++ b/Jaccorot/0023/templates/layout.html
@@ -0,0 +1,25 @@
+
+
+
+
+ Guestbook
+
+
+
+
+
Guestbook
+
+ {% if not session.logged_in %}
+ log in
+ {% else %}
+
+
+
\ No newline at end of file
diff --git a/Jaccorot/0023/templates/login.html b/Jaccorot/0023/templates/login.html
new file mode 100644
index 00000000..10693d19
--- /dev/null
+++ b/Jaccorot/0023/templates/login.html
@@ -0,0 +1,14 @@
+{% extends "layout.html" %}
+{% block body %}
+
Login
+ {% if error %}
+
Error:{{ error }}
+ {% endif %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/Jaccorot/0023/templates/show_entries.html b/Jaccorot/0023/templates/show_entries.html
new file mode 100644
index 00000000..dd248e15
--- /dev/null
+++ b/Jaccorot/0023/templates/show_entries.html
@@ -0,0 +1,25 @@
+{% extends "layout.html" %}
+{% block body %}
+ {% if session.logged_in %}
+
+ {% endif %}
+
+ {% for entry in entries %}
+
+
{{ entry.name }}
+
{{ entry.time }}
+ {{ entry.text|safe }}
+
+
+ {% else %}
+
Unbelieveable. No entries here so far
+ {% endfor %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/Jaccorot/0024/0024.md b/Jaccorot/0024/0024.md
new file mode 100644
index 00000000..e6cc00cd
--- /dev/null
+++ b/Jaccorot/0024/0024.md
@@ -0,0 +1,3 @@
+project link =
+https://github.com/Jaccorot/DailyProject
+
diff --git a/JiYouMCC b/JiYouMCC
new file mode 160000
index 00000000..e0c7c1c3
--- /dev/null
+++ b/JiYouMCC
@@ -0,0 +1 @@
+Subproject commit e0c7c1c37ccba38671078e0b0ff6238992a11499
diff --git a/JiYouMCC/0000/0000.png b/JiYouMCC/0000/0000.png
deleted file mode 100644
index 4f6dd404..00000000
Binary files a/JiYouMCC/0000/0000.png and /dev/null differ
diff --git a/JiYouMCC/0000/0000.py b/JiYouMCC/0000/0000.py
deleted file mode 100644
index 0c2e3a44..00000000
--- a/JiYouMCC/0000/0000.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- coding: utf-8 -*-
-# 第0000题:将你的QQ头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示。
-
-# using PIL in http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
-from PIL import Image
-from PIL import ImageFont
-from PIL import ImageDraw
-
-
-def write_number(image_file_path, number=1):
- img = Image.open(image_file_path)
- font_size = img.size[0] if img.size[0] < img.size[1] else img.size[1]
- font_size = font_size / 4
- number_txt = str(number) + ' ' if number < 100 else '99+'
- font = ImageFont.truetype("arial.ttf", size=font_size)
- if font.getsize(number_txt)[0] > img.size[0] or font.getsize(number_txt)[1] > img.size[1]:
- return img
- position = img.size[0] - font.getsize(number_txt)[0]
- ImageDraw.Draw(img).text((position, 0), number_txt, (255, 0, 0), font)
- return img
-
-write_number('0000.png').save('result.png')
-write_number('0000.png', 100).save('result100.png')
diff --git a/JiYouMCC/0001/0001.py b/JiYouMCC/0001/0001.py
deleted file mode 100644
index 41f6912c..00000000
--- a/JiYouMCC/0001/0001.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# -*- coding: utf-8 -*-
-# 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)?
-
-import uuid
-
-
-def create_code(number=200):
- result = []
- while True is True:
- temp = str(uuid.uuid1()).replace('-', '')
- if not temp in result:
- result.append(temp)
- if len(result) is number:
- break
- return result
-
-print create_code()
diff --git a/JiYouMCC/0002/0002.py b/JiYouMCC/0002/0002.py
deleted file mode 100644
index be47dd5c..00000000
--- a/JiYouMCC/0002/0002.py
+++ /dev/null
@@ -1,78 +0,0 @@
-# -*- coding: utf-8 -*-
-# 第 0002 题:将 0001 题生成的 200 个激活码(或者优惠券)保存到 MySQL 关系型数据库中。
-# using sina app
-# test page:http://mccatcivitas.sinaapp.com/showmecode2
-import sae.const
-import MySQLdb
-import uuid
-
-
-def create_code(number=200):
- result = []
- while True is True:
- temp = str(uuid.uuid1()).replace('-', '')
- if not temp in result:
- result.append(temp)
- if len(result) is number:
- break
- return result
-
-
-def insertCode(code, table='app_mccatcivitas.showmethecode'):
- conn = MySQLdb.connect(
- host=sae.const.MYSQL_HOST,
- user=sae.const.MYSQL_USER,
- passwd=sae.const.MYSQL_PASS,
- port=int(sae.const.MYSQL_PORT),
- charset='utf8')
- cur = conn.cursor()
- cur.execute("""insert into %s values('%s')""" % (
- table, code))
- conn.commit()
- cur.close()
- conn.close()
-
-
-def selectCodes(table='app_mccatcivitas.showmethecode'):
- connection = MySQLdb.connect(
- host=sae.const.MYSQL_HOST,
- user=sae.const.MYSQL_USER,
- passwd=sae.const.MYSQL_PASS,
- port=int(sae.const.MYSQL_PORT),
- init_command='set names utf8')
- cur = connection.cursor()
- cur.execute("""select * from %s""" % (table))
- result = []
- rows = cur.fetchall()
- for row in rows:
- result.append(str(row[0]))
- return result
-
-
-def cleanUp(table='app_mccatcivitas.showmethecode'):
- connection = MySQLdb.connect(
- host=sae.const.MYSQL_HOST,
- user=sae.const.MYSQL_USER,
- passwd=sae.const.MYSQL_PASS,
- port=int(sae.const.MYSQL_PORT),
- init_command='set names utf8')
- cur = connection.cursor()
- try:
- cur.execute("""drop table %s""" % (table))
- except Exception, e:
- print e
- connection.commit()
- cur.execute(
- """create table %s (code char(32) not null primary key)""" % (table))
- connection.commit()
- cur.close()
- connection.close()
-
-
-def Process():
- cleanUp()
- code = create_code()
- for c in code:
- insertCode(c)
- result = selectCodes()
- return result
diff --git a/JiYouMCC/0003/0003.py b/JiYouMCC/0003/0003.py
deleted file mode 100644
index a451b9fa..00000000
--- a/JiYouMCC/0003/0003.py
+++ /dev/null
@@ -1,3 +0,0 @@
-# -*- coding: utf-8 -*-
-# 第 0003 题:将 0001 题生成的 200 个激活码(或者优惠券)保存到 Redis 非关系型数据库中。
-# fail to install redis, skip it
\ No newline at end of file
diff --git a/JiYouMCC/0004/0004.py b/JiYouMCC/0004/0004.py
deleted file mode 100644
index 88819249..00000000
--- a/JiYouMCC/0004/0004.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- coding: utf-8 -*-
-# 第 0004 题:任一个英文的纯文本文件,统计其中的单词出现的个数。
-import io
-import operator
-
-
-def get_count_table(file='0004.txt', ignore=[',', '.', ':', '!', '?', '”', '“', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0'], lower=True):
- txt = open(file).read()
- for i in ignore:
- txt = txt.replace(i, ' ')
- if lower:
- txt = txt.lower()
- words = txt.split(' ')
- dic = {}
- for word in words:
- if word is '':
- continue
- if word in dic:
- dic[word] += 1
- else:
- dic[word] = 1
- return dic
-
-
-result = sorted(
- get_count_table().items(), key=operator.itemgetter(1), reverse=True)
-for item in result:
- print item[0], item[1]
diff --git a/JiYouMCC/0004/0004.txt b/JiYouMCC/0004/0004.txt
deleted file mode 100644
index 8d9df9b6..00000000
--- a/JiYouMCC/0004/0004.txt
+++ /dev/null
@@ -1 +0,0 @@
-Then I looked, and behold, on Mount Zion stood the Lamb, and with him 144,000 who had his name and his Father’s name written on their foreheads.And I heard a voice from heaven like the roar of many waters and like the sound of loud thunder. The voice I heard was like the sound of harpists playing on their harps,and they were singing a new song before the throne and before the four living creatures and before the elders. No one could learn that song except the 144,000 who had been redeemed from the earth.It is these who have not defiled themselves with women, for they are virgins. It is these who follow the Lamb wherever he goes. These have been redeemed from mankind as firstfruits for God and the Lamb,and in their mouth no lie was found, for they are blameless.The Messages of the Three AngelsThen I saw another angel flying directly overhead, with an eternal gospel to proclaim to those who dwell on earth, to every nation and tribe and language and people.And he said with a loud voice, “Fear God and give him glory, because the hour of his judgment has come, and worship him who made heaven and earth, the sea and the springs of water.”Another angel, a second, followed, saying, “Fallen, fallen is Babylon the great, she who made all nations drink the wine of the passion1 of her sexual immorality.”And another angel, a third, followed them, saying with a loud voice, “If anyone worships the beast and its image and receives a mark on his forehead or on his hand,10 he also will drink the wine of God’s wrath, poured full strength into the cup of his anger, and he will be tormented with fire and sulfur in the presence of the holy angels and in the presence of the Lamb.And the smoke of their torment goes up forever and ever, and they have no rest, day or night, these worshipers of the beast and its image, and whoever receives the mark of its name.”Here is a call for the endurance of the saints, those who keep the commandments of God and their faith in Jesus.2And I heard a voice from heaven saying, “Write this: Blessed are the dead who die in the Lord from now on.” “Blessed indeed,” says the Spirit, “that they may rest from their labors, for their deeds follow them!”The Harvest of the EarthThen I looked, and behold, a white cloud, and seated on the cloud one like a son of man, with a golden crown on his head, and a sharp sickle in his hand.And another angel came out of the temple, calling with a loud voice to him who sat on the cloud, “Put in your sickle, and reap, for the hour to reap has come, for the harvest of the earth is fully ripe.”So he who sat on the cloud swung his sickle across the earth, and the earth was reaped.Then another angel came out of the temple in heaven, and he too had a sharp sickle.And another angel came out from the altar, the angel who has authority over the fire, and he called with a loud voice to the one who had the sharp sickle, “Put in your sickle and gather the clusters from the vine of the earth, for its grapes are ripe.”So the angel swung his sickle across the earth and gathered the grape harvest of the earth and threw it into the great winepress of the wrath of God.And the winepress was trodden outside the city, and blood flowed from the winepress, as high as a horse’s bridle, for 1,600 stadia.
\ No newline at end of file
diff --git a/JiYouMCC/0005/0005-r.jpg b/JiYouMCC/0005/0005-r.jpg
deleted file mode 100644
index 0c7bca95..00000000
Binary files a/JiYouMCC/0005/0005-r.jpg and /dev/null differ
diff --git a/JiYouMCC/0005/0005.jpg b/JiYouMCC/0005/0005.jpg
deleted file mode 100644
index 030ab8a6..00000000
Binary files a/JiYouMCC/0005/0005.jpg and /dev/null differ
diff --git a/JiYouMCC/0005/0005.py b/JiYouMCC/0005/0005.py
deleted file mode 100644
index 6438fd06..00000000
--- a/JiYouMCC/0005/0005.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# -*- coding: utf-8 -*-
-# 第 0005 题:你有一个目录,装了很多照片,把它们的尺寸变成都不大于 iPhone5 分辨率的大小。
-# using PIL in http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
-from PIL import Image
-
-
-def change_image_size(image_path='0005.jpg', size=(1136, 640)):
- im = Image.open(image_path)
- size = (size[1], size[0]) if im.size[1] > im.size[0] else size
- im.thumbnail(size, Image.ANTIALIAS)
- im.save('result-' + image_path)
-
-change_image_size('0005-r.jpg')
-change_image_size('0005.jpg')
diff --git a/JiYouMCC/0010/0010.GIF b/JiYouMCC/0010/0010.GIF
deleted file mode 100644
index 3ffabb5c..00000000
Binary files a/JiYouMCC/0010/0010.GIF and /dev/null differ
diff --git a/JiYouMCC/0010/0010.py b/JiYouMCC/0010/0010.py
deleted file mode 100644
index 8c9f6992..00000000
--- a/JiYouMCC/0010/0010.py
+++ /dev/null
@@ -1,57 +0,0 @@
-from PIL import ImageFont, Image, ImageDraw
-import random
-
-
-class YZMInfo:
-
- def __init__(self, img, code):
- self.img = img
- self.code = code
-
-
-def ygm(font_size=20, count_min=4, count_max=10, code_height=30,
- string='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
- font_color=['black', 'darkblue', 'darkred', 'darkgreen'],
- font_family='arial.ttf'):
- if count_max < count_min:
- count_max = count_min
- code_count = random.randrange(count_min, count_max)
- background = (random.randrange(230, 255),
- random.randrange(230, 255),
- random.randrange(230, 255))
- line_color = [(random.randrange(0, 255),
- random.randrange(0, 255),
- random.randrange(0, 255)),
- (random.randrange(0, 255),
- random.randrange(0, 255),
- random.randrange(0, 255)),
- (random.randrange(0, 255),
- random.randrange(0, 255),
- random.randrange(0, 255))]
- img_width = (font_size + 1) * code_count
- img_height = code_height + font_size
- verify = ''
- im = Image.new('RGB', (img_width, img_height), background)
- draw = ImageDraw.Draw(im)
- code = random.sample(string, code_count)
- draw = ImageDraw.Draw(im)
- for i in range(random.randrange(code_count / 2, code_count)):
- xy = (random.randrange(0, img_width), random.randrange(0, img_height),
- random.randrange(0, img_width), random.randrange(0, img_height))
- draw.line(xy, fill=random.choice(line_color), width=1)
- x = font_size / 2
- for i in code:
- y = random.randrange(0, code_height)
- font = ImageFont.truetype(
- font_family, font_size + random.randrange(-font_size/3, font_size/3))
- draw.text((x, y), i, font=font, fill=random.choice(font_color))
- x += font_size
- verify += i
- return YZMInfo(img=im, code=verify.upper())
-
-
-info = ygm(font_size=16,
- code_height=10,
- string='#@%&$abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789')
-info.img.save("0010.GIF")
-print info.code
diff --git a/JiYouMCC/0010/README.md b/JiYouMCC/0010/README.md
deleted file mode 100644
index f5a35d2b..00000000
--- a/JiYouMCC/0010/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-第 0010 题:使用 Python 生成类似于下图中的字母验证码图片
-
-
-
-成品效果
-
-
diff --git a/JiYouMCC/0013/0013.py b/JiYouMCC/0013/0013.py
deleted file mode 100644
index ec1388ef..00000000
--- a/JiYouMCC/0013/0013.py
+++ /dev/null
@@ -1,46 +0,0 @@
-import urllib2
-import urllib
-import re
-import os
-import uuid
-
-
-def get_images(html_url='http://ycool.com/post/ae3u4zu',
- folder_name='jiyou_blog_PingLiangRoad',
- extensions=['gif', 'jpg', 'png']):
- request_html = urllib2.Request(html_url)
- try:
- response = urllib2.urlopen(request_html)
- html = response.read()
- r1 = r' im.size[0] else size
- im.thumbnail(size, Image.ANTIALIAS)
- im.save('result-' + image_path)
-
-change_image_size('0005-r.jpg')
-change_image_size('0005.jpg')
-
-# ip6
-change_image_size(image_path='0005.jpg', size=(1334, 750))
-
-# ip6plus
-change_image_size(image_path='0005.jpg', size=(1920, 1080))
diff --git a/JiYouMCC/0023/README.md b/JiYouMCC/0023/README.md
deleted file mode 100644
index 172fe231..00000000
--- a/JiYouMCC/0023/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-第 0023 题: 使用 Python 的 Web 框架,做一个 Web 版本 留言簿 应用。
----------------------------------------
-
-以前在sea上弄过一个差不多的:http://www.jithee.name/guestbook/
-不过sea弄django syncdb比较痛苦,所有sql拼接出的
-直接django真够傻瓜的……
-
-代码版本用的sqlite3,本地调试的时候用的mysql
-
- 'default': {
- 'ENGINE': 'django.db.backends.mysql',
- 'NAME': 'guestbook',
- 'USER': '',
- 'PASSWORD': '',
- 'HOST': '',
- 'PORT': '',
- }
diff --git a/JiYouMCC/0023/guestbook/db.sqlite3 b/JiYouMCC/0023/guestbook/db.sqlite3
deleted file mode 100644
index 3e0f3ca8..00000000
Binary files a/JiYouMCC/0023/guestbook/db.sqlite3 and /dev/null differ
diff --git a/JiYouMCC/0023/guestbook/guestbook/commits/admin.py b/JiYouMCC/0023/guestbook/guestbook/commits/admin.py
deleted file mode 100644
index c7687ca1..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/commits/admin.py
+++ /dev/null
@@ -1,4 +0,0 @@
-from django.contrib import admin
-from models import Message
-
-admin.site.register(Message)
diff --git a/JiYouMCC/0023/guestbook/guestbook/commits/migrations/0001_initial.py b/JiYouMCC/0023/guestbook/guestbook/commits/migrations/0001_initial.py
deleted file mode 100644
index 2d6f846a..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/commits/migrations/0001_initial.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
- dependencies = []
- operations = [
- migrations.CreateModel(
- name='Message',
- fields=[
- ('id', models.AutoField(
- verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('name', models.CharField(max_length=30)),
- ('message', models.TextField(max_length=65535)),
- ('date', models.DateTimeField()),
- ],
- options={
- },
- bases=(models.Model,),
- ),
- ]
diff --git a/JiYouMCC/0023/guestbook/guestbook/commits/models.py b/JiYouMCC/0023/guestbook/guestbook/commits/models.py
deleted file mode 100644
index 074387a7..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/commits/models.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from django.db import models
-
-
-class Message(models.Model):
- name = models.CharField(max_length=30)
- message = models.TextField(max_length=65535)
- date = models.DateTimeField()
-
- def __unicode__(self):
- return self.name + ':' + self.message[:25]
diff --git a/JiYouMCC/0023/guestbook/guestbook/commits/tests.py b/JiYouMCC/0023/guestbook/guestbook/commits/tests.py
deleted file mode 100644
index 2e9cb5f6..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/commits/tests.py
+++ /dev/null
@@ -1 +0,0 @@
-from django.test import TestCase
diff --git a/JiYouMCC/0023/guestbook/guestbook/commits/views.py b/JiYouMCC/0023/guestbook/guestbook/commits/views.py
deleted file mode 100644
index b9263bc3..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/commits/views.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-from django.shortcuts import render
-from django.http import HttpResponse, HttpResponseRedirect
-import datetime
-from models import Message
-
-
-def guestbook(request):
- try:
- name = request.COOKIES["name"]
- except:
- name = u"这家伙连名字也没有"
- return render(request, 'guestbook.html', {'commits': selectTextMsg(), 'name': name})
-
-
-def guesttalk(request):
- response = HttpResponseRedirect("/guest")
- if request.method == "GET":
- name = request.GET.get('name', '')
- commit = request.GET.get('commits', '')
- date = datetime.datetime.now()
- if len(name) > 0 and len(commit) > 0 and len(name) < 41 and len(commit) < 4096:
- response.set_cookie("name", name.encode('utf8'))
- insertTextMsg(name, date, commit)
- return response
-
-
-def insertTextMsg(user, date, message):
- message = Message(name=user,
- message=message,
- date=date,)
- message.save()
-
-
-def selectTextMsg():
- return Message.objects.all().order_by("-date")
diff --git a/JiYouMCC/0023/guestbook/guestbook/settings.py b/JiYouMCC/0023/guestbook/guestbook/settings.py
deleted file mode 100644
index c25a6cc8..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/settings.py
+++ /dev/null
@@ -1,41 +0,0 @@
-import os
-BASE_DIR = os.path.dirname(os.path.dirname(__file__))
-SECRET_KEY = '+m8si5lo@6467j75%wz#z+cvsxl=)u_c(2-o^&+&^++*-48t$5'
-DEBUG = True
-TEMPLATE_DEBUG = True
-ALLOWED_HOSTS = []
-INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'guestbook.commits',
-)
-MIDDLEWARE_CLASSES = (
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
-)
-ROOT_URLCONF = 'guestbook.urls'
-WSGI_APPLICATION = 'guestbook.wsgi.application'
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-LANGUAGE_CODE = 'zh-cn'
-TIME_ZONE = 'Asia/Shanghai'
-USE_I18N = True
-USE_L10N = True
-USE_TZ = True
-STATIC_URL = '/static/'
-TEMPLATE_DIRS = (
- os.path.join(BASE_DIR, 'guestbook/template'),
-)
diff --git a/JiYouMCC/0023/guestbook/guestbook/template/guestbook.html b/JiYouMCC/0023/guestbook/guestbook/template/guestbook.html
deleted file mode 100644
index ce2cfe5a..00000000
--- a/JiYouMCC/0023/guestbook/guestbook/template/guestbook.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- 简易留言本
-
-
-
+
+
\ No newline at end of file
diff --git a/Lyndon1994/0024/__init__.py b/Lyndon1994/0024/__init__.py
new file mode 100644
index 00000000..40a96afc
--- /dev/null
+++ b/Lyndon1994/0024/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/Lyndon1994/0024/todo.py b/Lyndon1994/0024/todo.py
new file mode 100644
index 00000000..40a96afc
--- /dev/null
+++ b/Lyndon1994/0024/todo.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/Lyndon1994/README.md b/Lyndon1994/README.md
new file mode 100644
index 00000000..7f9b1ae1
--- /dev/null
+++ b/Lyndon1994/README.md
@@ -0,0 +1,2 @@
+# Show-Me-the-Code
+Show Me the Code Python version. https://github.com/Show-Me-the-Code/python
diff --git a/Lyndon1994/source/0004-text.txt b/Lyndon1994/source/0004-text.txt
new file mode 100644
index 00000000..906dc1c9
--- /dev/null
+++ b/Lyndon1994/source/0004-text.txt
@@ -0,0 +1,7 @@
+Architects look at thousands of buildings during their training, and study critiques of those buildings written by masters. In contrast, most software developers only ever get to know a handful of large programs well—usually programs they wrote themselves—and never study the great programs of history. As a result, they repeat one another's mistakes rather than building on one another's successes.
+
+Our goal is to change that. In these two books, the authors of four dozen open source applications explain how their software is structured, and why. What are each program's major components? How do they interact? And what did their builders learn during their development? In answering these questions, the contributors to these books provide unique insights into how they think.
+
+If you are a junior developer, and want to learn how your more experienced colleagues think, these books are the place to start. If you are an intermediate or senior developer, and want to see how your peers have solved hard design problems, these books can help you too.
+
+Follow us on our blog at http://aosabook.org/blog/ or on Twitter at @aosabook and using the #aosa hashtag.
\ No newline at end of file
diff --git a/Lyndon1994/source/0005/pics/17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg b/Lyndon1994/source/0005/pics/17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg
new file mode 100644
index 00000000..c2239b3e
Binary files /dev/null and b/Lyndon1994/source/0005/pics/17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg differ
diff --git a/Lyndon1994/source/0005/pics/1caf792fb6fe974a521128071ef41ef53881c99c.jpg b/Lyndon1994/source/0005/pics/1caf792fb6fe974a521128071ef41ef53881c99c.jpg
new file mode 100644
index 00000000..07934944
Binary files /dev/null and b/Lyndon1994/source/0005/pics/1caf792fb6fe974a521128071ef41ef53881c99c.jpg differ
diff --git a/Lyndon1994/source/0005/pics/21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg b/Lyndon1994/source/0005/pics/21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg
new file mode 100644
index 00000000..9e84c32b
Binary files /dev/null and b/Lyndon1994/source/0005/pics/21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg differ
diff --git a/Lyndon1994/source/0005/pics/348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg b/Lyndon1994/source/0005/pics/348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg
new file mode 100644
index 00000000..f69c3dec
Binary files /dev/null and b/Lyndon1994/source/0005/pics/348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg differ
diff --git a/Lyndon1994/source/0005/pics/46673332eec7befebb70e54652f68423dd15ffbb.jpg b/Lyndon1994/source/0005/pics/46673332eec7befebb70e54652f68423dd15ffbb.jpg
new file mode 100644
index 00000000..c6b9d2da
Binary files /dev/null and b/Lyndon1994/source/0005/pics/46673332eec7befebb70e54652f68423dd15ffbb.jpg differ
diff --git a/Lyndon1994/source/0005/pics/50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg b/Lyndon1994/source/0005/pics/50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg
new file mode 100644
index 00000000..2ae2800e
Binary files /dev/null and b/Lyndon1994/source/0005/pics/50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg differ
diff --git a/Lyndon1994/source/0005/pics/5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg b/Lyndon1994/source/0005/pics/5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg
new file mode 100644
index 00000000..ffcfbda0
Binary files /dev/null and b/Lyndon1994/source/0005/pics/5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg differ
diff --git a/Lyndon1994/source/0005/pics/7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg b/Lyndon1994/source/0005/pics/7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg
new file mode 100644
index 00000000..4e28f702
Binary files /dev/null and b/Lyndon1994/source/0005/pics/7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg differ
diff --git a/Lyndon1994/source/0005/pics/8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg b/Lyndon1994/source/0005/pics/8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg
new file mode 100644
index 00000000..52b00d6f
Binary files /dev/null and b/Lyndon1994/source/0005/pics/8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg differ
diff --git a/Lyndon1994/source/0005/pics/afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg b/Lyndon1994/source/0005/pics/afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg
new file mode 100644
index 00000000..85d18172
Binary files /dev/null and b/Lyndon1994/source/0005/pics/afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg b/Lyndon1994/source/0005/result/finish_17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg
new file mode 100644
index 00000000..c2943bf5
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_17fb7c2dc017eef4d839b311c35a09df18ff6861.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_1caf792fb6fe974a521128071ef41ef53881c99c.jpg b/Lyndon1994/source/0005/result/finish_1caf792fb6fe974a521128071ef41ef53881c99c.jpg
new file mode 100644
index 00000000..482ee574
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_1caf792fb6fe974a521128071ef41ef53881c99c.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg b/Lyndon1994/source/0005/result/finish_21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg
new file mode 100644
index 00000000..95ea9f45
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_21232fa7298b4bdfe4778c25ef24258f6cfb6327.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg b/Lyndon1994/source/0005/result/finish_348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg
new file mode 100644
index 00000000..946153f6
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_348dd2ae5ff6deb6ef7b6bf9ab23e43cf8d8d2c5.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_46673332eec7befebb70e54652f68423dd15ffbb.jpg b/Lyndon1994/source/0005/result/finish_46673332eec7befebb70e54652f68423dd15ffbb.jpg
new file mode 100644
index 00000000..dcd407f8
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_46673332eec7befebb70e54652f68423dd15ffbb.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg b/Lyndon1994/source/0005/result/finish_50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg
new file mode 100644
index 00000000..40347a93
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_50c0ebe8f13d8c4889faaba4daec14c298fd78a7.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg b/Lyndon1994/source/0005/result/finish_5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg
new file mode 100644
index 00000000..78a1ff40
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_5865440118a1550d8d27c4fdd9d28f6e9efaa99a.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg b/Lyndon1994/source/0005/result/finish_7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg
new file mode 100644
index 00000000..73f0e40f
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_7bf24be69bee676e503efc0b09caf484db5dd2b9.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg b/Lyndon1994/source/0005/result/finish_8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg
new file mode 100644
index 00000000..8f0caec6
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_8d1076bccf118eb0145495e3f1babbe1c3b30180.jpg differ
diff --git a/Lyndon1994/source/0005/result/finish_afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg b/Lyndon1994/source/0005/result/finish_afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg
new file mode 100644
index 00000000..7cdf1f2a
Binary files /dev/null and b/Lyndon1994/source/0005/result/finish_afe35fd64c190588d8bf4a657d02c52ceea875b6.jpg differ
diff --git a/Lyndon1994/source/0006/1.txt b/Lyndon1994/source/0006/1.txt
new file mode 100644
index 00000000..254a2332
--- /dev/null
+++ b/Lyndon1994/source/0006/1.txt
@@ -0,0 +1,7 @@
+Dethe is a geek dad, aesthetic programmer, mentor, and creator of the Waterbear visual programming tool. He co-hosts the Vancouver Maker Education Salons and wants to fill the world with robotic origami rabbits.
+
+In block-based programming languages, you write programs by dragging and connecting blocks that represent parts of the program. Block-based languages differ from conventional programming languages, in which you type words and symbols.
+
+Learning a programming language can be difficult because they are extremely sensitive to even the slightest of typos. Most programming languages are case-sensitive, have obscure syntax, and will refuse to run if you get so much as a semicolon in the wrong place—or worse, leave one out. Further, most programming languages in use today are based on English and their syntax cannot be localized.
+
+In contrast, a well-done block language can eliminate syntax errors completely. You can still create a program which does the wrong thing, but you cannot create one with the wrong syntax: the blocks just won't fit that way. Block languages are more discoverable: you can see all the constructs and libraries of the language right in the list of blocks. Further, blocks can be localized into any human language without changing the meaning of the programming language.
\ No newline at end of file
diff --git a/Lyndon1994/source/0006/2.txt b/Lyndon1994/source/0006/2.txt
new file mode 100644
index 00000000..f1fc4500
--- /dev/null
+++ b/Lyndon1994/source/0006/2.txt
@@ -0,0 +1,7 @@
+Block-based languages have a long history, with some of the prominent ones being Lego Mindstorms, Alice3D, StarLogo, and especially Scratch. There are several tools for block-based programming on the web as well: Blockly, AppInventor, Tynker, and many more.
+
+The code in this chapter is loosely based on the open-source project Waterbear, which is not a language but a tool for wrapping existing languages with a block-based syntax. Advantages of such a wrapper include the ones noted above: eliminating syntax errors, visual display of available components, ease of localization. Additionally, visual code can sometimes be easier to read and debug, and blocks can be used by pre-typing children. (We could even go further and put icons on the blocks, either in conjunction with the text names or instead of them, to allow pre-literate children to write programs, but we don't go that far in this example.)
+
+The choice of turtle graphics for this language goes back to the Logo language, which was created specifically to teach programming to children. Several of the block-based languages above include turtle graphics, and it is a small enough domain to be able to capture in a tightly constrained project such as this.
+
+If you would like to get a feel for what a block-based-language is like, you can experiment with the program that is built in this chapter from author's GitHub repository.
\ No newline at end of file
diff --git a/Lyndon1994/source/0006/3.txt b/Lyndon1994/source/0006/3.txt
new file mode 100644
index 00000000..f477eaad
--- /dev/null
+++ b/Lyndon1994/source/0006/3.txt
@@ -0,0 +1,6 @@
+Goals and Structure
+I want to accomplish a couple of things with this code. First and foremost, I want to implement a block language for turtle graphics, with which you can write code to create images through simple dragging-and-dropping of blocks, using as simple a structure of HTML, CSS, and JavaScript as possible. Second, but still important, I want to show how the blocks themselves can serve as a framework for other languages besides our mini turtle language.
+
+To do this, we encapsulate everything that is specific to the turtle language into one file (turtle.js) that we can easily swap with another file. Nothing else should be specific to the turtle language; the rest should just be about handling the blocks (blocks.js and menu.js) or be generally useful web utilities (util.js, drag.js, file.js). That is the goal, although to maintain the small size of the project, some of those utilities are less general-purpose and more specific to their use with the blocks.
+
+One thing that struck me when writing a block language was that the language is its own IDE. You can't just code up blocks in your favourite text editor; the IDE has to be designed and developed in parallel with the block language. This has some pros and cons. On the plus side, everyone will use a consistent environment and there is no room for religious wars about what editor to use. On the downside, it can be a huge distraction from building the block language itself.
\ No newline at end of file
diff --git a/Lyndon1994/source/0011/filtered_words.txt b/Lyndon1994/source/0011/filtered_words.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/Lyndon1994/source/0011/filtered_words.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/Lyndon1994/source/0014/student.txt b/Lyndon1994/source/0014/student.txt
new file mode 100644
index 00000000..f06a601f
--- /dev/null
+++ b/Lyndon1994/source/0014/student.txt
@@ -0,0 +1,5 @@
+{
+ "1":["张三",150,120,100],
+ "2":["李四",90,99,95],
+ "3":["王五",60,66,68]
+}
\ No newline at end of file
diff --git a/Lyndon1994/source/0014/student.xls b/Lyndon1994/source/0014/student.xls
new file mode 100644
index 00000000..c8a41564
Binary files /dev/null and b/Lyndon1994/source/0014/student.xls differ
diff --git a/Lyndon1994/source/0014/student.xml b/Lyndon1994/source/0014/student.xml
new file mode 100644
index 00000000..9f7d7661
--- /dev/null
+++ b/Lyndon1994/source/0014/student.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ {
+ "1":["张三",150,120,100],
+ "2":["李四",90,99,95],
+ "3":["王五",60,66,68]
+}
+
+
+
\ No newline at end of file
diff --git a/Jimmy66/0015/city.txt b/Lyndon1994/source/0015/city.txt
similarity index 100%
rename from Jimmy66/0015/city.txt
rename to Lyndon1994/source/0015/city.txt
diff --git a/Lyndon1994/source/0015/city.xls b/Lyndon1994/source/0015/city.xls
new file mode 100644
index 00000000..1809fe86
Binary files /dev/null and b/Lyndon1994/source/0015/city.xls differ
diff --git "a/Lyndon1994/source/0020/2017\345\271\26403\346\234\210\350\257\255\351\237\263\351\200\232\344\277\241.xls" "b/Lyndon1994/source/0020/2017\345\271\26403\346\234\210\350\257\255\351\237\263\351\200\232\344\277\241.xls"
new file mode 100644
index 00000000..6f77a985
Binary files /dev/null and "b/Lyndon1994/source/0020/2017\345\271\26403\346\234\210\350\257\255\351\237\263\351\200\232\344\277\241.xls" differ
diff --git a/MarzinZ/0000/sample.jpg b/MarzinZ/0000/sample.jpg
deleted file mode 100644
index d34ed453..00000000
Binary files a/MarzinZ/0000/sample.jpg and /dev/null differ
diff --git a/Matafight/0001/gencodes.txt b/Matafight/0001/gencodes.txt
new file mode 100644
index 00000000..045129fd
--- /dev/null
+++ b/Matafight/0001/gencodes.txt
@@ -0,0 +1,200 @@
+19a86eae-e274-11e4-a462-b870f41f9997
+19ab06c0-e274-11e4-90b2-b870f41f9997
+19ab06c1-e274-11e4-92e6-b870f41f9997
+19ab06c2-e274-11e4-af0d-b870f41f9997
+19ab06c3-e274-11e4-9ee8-b870f41f9997
+19ab06c4-e274-11e4-bdba-b870f41f9997
+19ab06c5-e274-11e4-98bd-b870f41f9997
+19ab06c6-e274-11e4-9247-b870f41f9997
+19ab06c7-e274-11e4-b1d7-b870f41f9997
+19ab06c8-e274-11e4-9b50-b870f41f9997
+19ab06c9-e274-11e4-b95e-b870f41f9997
+19ab06ca-e274-11e4-a6bc-b870f41f9997
+19ab06cb-e274-11e4-acb2-b870f41f9997
+19ab06cc-e274-11e4-adc3-b870f41f9997
+19ab06cd-e274-11e4-82d2-b870f41f9997
+19ab06ce-e274-11e4-9c5c-b870f41f9997
+19ab06cf-e274-11e4-887b-b870f41f9997
+19ab06d0-e274-11e4-9ae6-b870f41f9997
+19ab06d1-e274-11e4-9a89-b870f41f9997
+19ab06d2-e274-11e4-adc9-b870f41f9997
+19ab06d3-e274-11e4-9717-b870f41f9997
+19ab06d4-e274-11e4-b475-b870f41f9997
+19ab06d5-e274-11e4-971e-b870f41f9997
+19ab06d6-e274-11e4-8726-b870f41f9997
+19ab06d7-e274-11e4-bc47-b870f41f9997
+19ab06d8-e274-11e4-91a3-b870f41f9997
+19ab06d9-e274-11e4-85fe-b870f41f9997
+19ab06da-e274-11e4-b7e9-b870f41f9997
+19ab06db-e274-11e4-8f0d-b870f41f9997
+19ab06dc-e274-11e4-bd0d-b870f41f9997
+19ab06dd-e274-11e4-bb78-b870f41f9997
+19ab06de-e274-11e4-a8cd-b870f41f9997
+19ab06df-e274-11e4-932c-b870f41f9997
+19ab2dcf-e274-11e4-8c44-b870f41f9997
+19ab2dd0-e274-11e4-a7fb-b870f41f9997
+19ab2dd1-e274-11e4-9805-b870f41f9997
+19ab2dd2-e274-11e4-9f0f-b870f41f9997
+19ab2dd3-e274-11e4-b0d7-b870f41f9997
+19ab2dd4-e274-11e4-9ab0-b870f41f9997
+19ab2dd5-e274-11e4-b7e0-b870f41f9997
+19ab2dd6-e274-11e4-9e9f-b870f41f9997
+19ab2dd7-e274-11e4-9b23-b870f41f9997
+19ab2dd8-e274-11e4-af20-b870f41f9997
+19ab2dd9-e274-11e4-893b-b870f41f9997
+19ab2dda-e274-11e4-ae1f-b870f41f9997
+19ab2ddb-e274-11e4-83ba-b870f41f9997
+19ab2ddc-e274-11e4-9f4d-b870f41f9997
+19ab2ddd-e274-11e4-abca-b870f41f9997
+19ab2dde-e274-11e4-8e66-b870f41f9997
+19ab2ddf-e274-11e4-9ef6-b870f41f9997
+19ab2de0-e274-11e4-bc9f-b870f41f9997
+19ab2de1-e274-11e4-aad4-b870f41f9997
+19ab2de2-e274-11e4-8b72-b870f41f9997
+19ab2de3-e274-11e4-8fb4-b870f41f9997
+19ab2de4-e274-11e4-b16e-b870f41f9997
+19ab2de5-e274-11e4-9c55-b870f41f9997
+19ab2de6-e274-11e4-8944-b870f41f9997
+19ab2de7-e274-11e4-a194-b870f41f9997
+19ab2de8-e274-11e4-939a-b870f41f9997
+19ab2de9-e274-11e4-9407-b870f41f9997
+19ab2dea-e274-11e4-89dd-b870f41f9997
+19ab2deb-e274-11e4-ab68-b870f41f9997
+19ab2dec-e274-11e4-81c4-b870f41f9997
+19ab2ded-e274-11e4-8a0a-b870f41f9997
+19ab2dee-e274-11e4-b053-b870f41f9997
+19ab2def-e274-11e4-b9eb-b870f41f9997
+19ab2df0-e274-11e4-b4c4-b870f41f9997
+19ab2df1-e274-11e4-bb71-b870f41f9997
+19ab2df2-e274-11e4-866d-b870f41f9997
+19ab2df3-e274-11e4-a075-b870f41f9997
+19ab2df4-e274-11e4-a26d-b870f41f9997
+19ab2df5-e274-11e4-97e7-b870f41f9997
+19ab2df6-e274-11e4-8daf-b870f41f9997
+19ab2df7-e274-11e4-8454-b870f41f9997
+19ab2df8-e274-11e4-846f-b870f41f9997
+19ab2df9-e274-11e4-bbcf-b870f41f9997
+19ab2dfa-e274-11e4-8c00-b870f41f9997
+19ab2dfb-e274-11e4-9dfd-b870f41f9997
+19ab2dfc-e274-11e4-bc23-b870f41f9997
+19ab2dfd-e274-11e4-bc22-b870f41f9997
+19ab2dfe-e274-11e4-aeb7-b870f41f9997
+19ab2dff-e274-11e4-a089-b870f41f9997
+19ab54de-e274-11e4-bbae-b870f41f9997
+19ab54df-e274-11e4-9bcc-b870f41f9997
+19ab54e0-e274-11e4-b29f-b870f41f9997
+19ab54e1-e274-11e4-b35e-b870f41f9997
+19ab54e2-e274-11e4-a961-b870f41f9997
+19ab54e3-e274-11e4-b4ac-b870f41f9997
+19ab54e4-e274-11e4-92f1-b870f41f9997
+19ab54e5-e274-11e4-9e32-b870f41f9997
+19ab54e6-e274-11e4-81c6-b870f41f9997
+19ab54e7-e274-11e4-8ddf-b870f41f9997
+19ab54e8-e274-11e4-80a2-b870f41f9997
+19ab54e9-e274-11e4-a464-b870f41f9997
+19ab54ea-e274-11e4-82a3-b870f41f9997
+19ab54eb-e274-11e4-8063-b870f41f9997
+19ab54ec-e274-11e4-a971-b870f41f9997
+19ab54ed-e274-11e4-ae75-b870f41f9997
+19ab54ee-e274-11e4-b3eb-b870f41f9997
+19ab54ef-e274-11e4-a18f-b870f41f9997
+19ab54f0-e274-11e4-8caa-b870f41f9997
+19ab54f1-e274-11e4-b8c5-b870f41f9997
+19ab54f2-e274-11e4-8a9e-b870f41f9997
+19ab54f3-e274-11e4-95ee-b870f41f9997
+19ab54f4-e274-11e4-88e3-b870f41f9997
+19ab54f5-e274-11e4-bf12-b870f41f9997
+19ab54f6-e274-11e4-ada4-b870f41f9997
+19ab54f7-e274-11e4-b0ef-b870f41f9997
+19ab54f8-e274-11e4-8b9a-b870f41f9997
+19ab54f9-e274-11e4-98b1-b870f41f9997
+19ab54fa-e274-11e4-916d-b870f41f9997
+19ab54fb-e274-11e4-8ec0-b870f41f9997
+19ab54fc-e274-11e4-b626-b870f41f9997
+19ab54fd-e274-11e4-a904-b870f41f9997
+19ab54fe-e274-11e4-8662-b870f41f9997
+19ab54ff-e274-11e4-83d1-b870f41f9997
+19ab5500-e274-11e4-9042-b870f41f9997
+19ab5501-e274-11e4-b901-b870f41f9997
+19ab5502-e274-11e4-bcfa-b870f41f9997
+19ab5503-e274-11e4-8736-b870f41f9997
+19ab5504-e274-11e4-86f5-b870f41f9997
+19ab5505-e274-11e4-93bc-b870f41f9997
+19ab5506-e274-11e4-830d-b870f41f9997
+19ab5507-e274-11e4-b3f1-b870f41f9997
+19ab5508-e274-11e4-93d5-b870f41f9997
+19ab5509-e274-11e4-923a-b870f41f9997
+19ab550a-e274-11e4-85a4-b870f41f9997
+19ab550b-e274-11e4-9502-b870f41f9997
+19ab550c-e274-11e4-b9f6-b870f41f9997
+19ab550d-e274-11e4-a867-b870f41f9997
+19ab550e-e274-11e4-89ae-b870f41f9997
+19ab550f-e274-11e4-8ae9-b870f41f9997
+19ab5510-e274-11e4-885e-b870f41f9997
+19ab5511-e274-11e4-90f8-b870f41f9997
+19ab7bee-e274-11e4-9370-b870f41f9997
+19ab7bef-e274-11e4-846a-b870f41f9997
+19ab7bf0-e274-11e4-839f-b870f41f9997
+19ab7bf1-e274-11e4-a17d-b870f41f9997
+19ab7bf2-e274-11e4-8619-b870f41f9997
+19ab7bf3-e274-11e4-a290-b870f41f9997
+19ab7bf4-e274-11e4-89c3-b870f41f9997
+19ab7bf5-e274-11e4-ad3b-b870f41f9997
+19ab7bf6-e274-11e4-ae67-b870f41f9997
+19ab7bf7-e274-11e4-938b-b870f41f9997
+19ab7bf8-e274-11e4-a6e5-b870f41f9997
+19ab7bf9-e274-11e4-805e-b870f41f9997
+19ab7bfa-e274-11e4-a574-b870f41f9997
+19ab7bfb-e274-11e4-a379-b870f41f9997
+19ab7bfc-e274-11e4-873c-b870f41f9997
+19ab7bfd-e274-11e4-a312-b870f41f9997
+19ab7bfe-e274-11e4-88f3-b870f41f9997
+19ab7bff-e274-11e4-98bf-b870f41f9997
+19ab7c00-e274-11e4-854c-b870f41f9997
+19ab7c01-e274-11e4-aefa-b870f41f9997
+19ab7c02-e274-11e4-96aa-b870f41f9997
+19ab7c03-e274-11e4-bea1-b870f41f9997
+19ab7c04-e274-11e4-ade7-b870f41f9997
+19ab7c05-e274-11e4-8f69-b870f41f9997
+19ab7c06-e274-11e4-9f5c-b870f41f9997
+19ab7c07-e274-11e4-b7b5-b870f41f9997
+19ab7c08-e274-11e4-b981-b870f41f9997
+19ab7c09-e274-11e4-9afa-b870f41f9997
+19ab7c0a-e274-11e4-bfb1-b870f41f9997
+19ab7c0b-e274-11e4-82d7-b870f41f9997
+19ab7c0c-e274-11e4-b270-b870f41f9997
+19ab7c0d-e274-11e4-bae6-b870f41f9997
+19ab7c0e-e274-11e4-8b31-b870f41f9997
+19ab7c0f-e274-11e4-8cde-b870f41f9997
+19ab7c10-e274-11e4-a381-b870f41f9997
+19ab7c11-e274-11e4-8716-b870f41f9997
+19ab7c12-e274-11e4-8884-b870f41f9997
+19ab7c13-e274-11e4-80ff-b870f41f9997
+19ab7c14-e274-11e4-acc5-b870f41f9997
+19ab7c15-e274-11e4-a471-b870f41f9997
+19aba300-e274-11e4-8f8f-b870f41f9997
+19aba301-e274-11e4-a482-b870f41f9997
+19aba302-e274-11e4-9d99-b870f41f9997
+19aba303-e274-11e4-912e-b870f41f9997
+19aba304-e274-11e4-8850-b870f41f9997
+19aba305-e274-11e4-8c3b-b870f41f9997
+19aba306-e274-11e4-aab1-b870f41f9997
+19aba307-e274-11e4-9eef-b870f41f9997
+19aba308-e274-11e4-bb0f-b870f41f9997
+19aba309-e274-11e4-9209-b870f41f9997
+19aba30a-e274-11e4-90fc-b870f41f9997
+19aba30b-e274-11e4-b358-b870f41f9997
+19aba30c-e274-11e4-a370-b870f41f9997
+19aba30d-e274-11e4-8500-b870f41f9997
+19aba30e-e274-11e4-9f97-b870f41f9997
+19aba30f-e274-11e4-bd2f-b870f41f9997
+19aba310-e274-11e4-aac0-b870f41f9997
+19aba311-e274-11e4-b0f9-b870f41f9997
+19aba312-e274-11e4-ac67-b870f41f9997
+19aba313-e274-11e4-957e-b870f41f9997
+19aba314-e274-11e4-9150-b870f41f9997
+19aba315-e274-11e4-8e0d-b870f41f9997
+19aba316-e274-11e4-a72e-b870f41f9997
+19aba317-e274-11e4-ae22-b870f41f9997
+19aba318-e274-11e4-8f40-b870f41f9997
+19aba319-e274-11e4-85be-b870f41f9997
diff --git a/Matafight/0001/generate_200.py b/Matafight/0001/generate_200.py
new file mode 100644
index 00000000..6cb7305e
--- /dev/null
+++ b/Matafight/0001/generate_200.py
@@ -0,0 +1,23 @@
+#_*_ encoding: utf-8 _*_
+import uuid
+
+class generate:
+ def __init__(self):
+ self.num=0;
+ self.listid=[];
+ def generate_uuid(self,num):
+ for i in range(int(num)):
+ self.listid.append(uuid.uuid1());
+
+ def get_uuid(self):
+ return self.listid;
+
+if __name__=="__main__":
+ gencode=generate();
+ gencode.generate_uuid(200);
+ keys=gencode.get_uuid();
+ filekeys=file("gencodes.txt",'w');
+ for key in keys:
+ filekeys.write(str(key)+'\n');
+ filekeys.close();
+
diff --git a/Matafight/0004/countWord.py b/Matafight/0004/countWord.py
new file mode 100644
index 00000000..3766b9eb
--- /dev/null
+++ b/Matafight/0004/countWord.py
@@ -0,0 +1,10 @@
+#_*_ encoding: utf-8 _*_
+import re
+
+inputfile=file("test.txt",'r');
+count=0;
+for line in inputfile.readlines():
+ word=re.findall(r"\w+",line);
+ count+=len(word);
+print "total wordcount is "+ str(count);
+inputfile.close();
diff --git a/Matafight/0004/test.txt b/Matafight/0004/test.txt
new file mode 100644
index 00000000..3505a728
--- /dev/null
+++ b/Matafight/0004/test.txt
@@ -0,0 +1,2 @@
+this is a test file
+this is second line:
\ No newline at end of file
diff --git a/Matafight/0006/diary1.txt b/Matafight/0006/diary1.txt
new file mode 100644
index 00000000..c6e8552e
--- /dev/null
+++ b/Matafight/0006/diary1.txt
@@ -0,0 +1 @@
+this is a diary test is
\ No newline at end of file
diff --git a/Matafight/0006/diary2.txt b/Matafight/0006/diary2.txt
new file mode 100644
index 00000000..76afcce7
--- /dev/null
+++ b/Matafight/0006/diary2.txt
@@ -0,0 +1,2 @@
+test
+test
\ No newline at end of file
diff --git a/Matafight/0006/diary3.txt b/Matafight/0006/diary3.txt
new file mode 100644
index 00000000..f27296b5
--- /dev/null
+++ b/Matafight/0006/diary3.txt
@@ -0,0 +1,2 @@
+diary3
+diary3
\ No newline at end of file
diff --git a/Matafight/0006/importantdiary.py b/Matafight/0006/importantdiary.py
new file mode 100644
index 00000000..f062a504
--- /dev/null
+++ b/Matafight/0006/importantdiary.py
@@ -0,0 +1,41 @@
+#_*_ encoding: utf-8 _*_
+import re
+
+class countWord:
+ def __init__(self):
+ self.dic={};
+ self.word="";
+
+
+ def count(self,filename):
+ self.dic={};
+ fopen=file(filename,'r');
+ for lines in fopen.readlines():
+ words=re.findall(r"\w+",lines);
+ for items in words:
+ if items in self.dic.keys():
+ self.dic[items]+=1;
+ else:
+ self.dic[items]=1;
+
+ #对字典value值排序
+ dict= sorted(self.dic.iteritems(), key=lambda d:d[1], reverse = True);
+ self.word=dict[0][0];
+
+ def getWord(self):
+ return self.word;
+
+
+if __name__=="__main__":
+ diarycount=countWord();
+ order=1;
+ importantlist=[];
+ for order in range(1,4):
+ fname="diary"+str(order)+".txt";
+ diarycount.count(fname);
+ importantlist.append(diarycount.getWord());
+ order+=1;
+ for item in importantlist:
+ print str(item)+"\t";
+
+
diff --git a/Matafight/0007/countCodeLines.py b/Matafight/0007/countCodeLines.py
new file mode 100644
index 00000000..e3ca80a0
--- /dev/null
+++ b/Matafight/0007/countCodeLines.py
@@ -0,0 +1,63 @@
+#_*_ encoding: utf-8 _*_
+import os
+import re
+#http://www.cnblogs.com/zhoujie/archive/2013/04/10/python7.html
+#http://cuiqingcai.com/977.html
+class countLines:
+ def __init__(self):
+ self.comment=0;
+ self.codes=0;
+ self.blank=0;
+ self.fileList=[];#存的是各个文件相关的list
+ def openDir(self,dirname):
+ curdir=os.getcwd();
+ curdir=curdir+str(dirname);
+ print curdir
+ dirlist=os.listdir(curdir);
+ checkpy=re.compile(r"\.py$");
+ for item in dirlist:
+ if checkpy.search(item):
+ item="\\"+item;
+ self.count(curdir+item);
+
+ def count(self,filename):
+ self.comment=0;
+ self.codes=0;
+ self.blank=0;
+ f=file(filename,'r');
+ patcomment=re.compile(r"^\s*#");#
+ patblank=re.compile(r"^\s+$");#空白字符
+ for line in f.readlines():
+ if patblank.search(line):
+ self.blank+=1;
+ elif patcomment.search(line):
+ self.comment+=1;
+ else:
+ self.codes+=1;
+ self.fileList.append([filename,self.codes,self.comment,self.blank]);
+
+ f.close();
+
+ def getResult(self):
+ return self.fileList;
+
+if __name__=="__main__":
+ countInstance=countLines();
+ countInstance.openDir(r"\testDir");
+ relist=countInstance.getResult();
+ for item in relist:
+ print item[0];
+ print "code num:"+str(item[1]);
+ print "comment num:"+str(item[2]);
+ print "blank num:"+str(item[3]);
+ print "\n"
+
+
+
+
+
+
+
+
+
+
diff --git a/Matafight/0007/testDir/countWord.py b/Matafight/0007/testDir/countWord.py
new file mode 100644
index 00000000..3766b9eb
--- /dev/null
+++ b/Matafight/0007/testDir/countWord.py
@@ -0,0 +1,10 @@
+#_*_ encoding: utf-8 _*_
+import re
+
+inputfile=file("test.txt",'r');
+count=0;
+for line in inputfile.readlines():
+ word=re.findall(r"\w+",line);
+ count+=len(word);
+print "total wordcount is "+ str(count);
+inputfile.close();
diff --git a/Matafight/0007/testDir/generate_200.py b/Matafight/0007/testDir/generate_200.py
new file mode 100644
index 00000000..6cb7305e
--- /dev/null
+++ b/Matafight/0007/testDir/generate_200.py
@@ -0,0 +1,23 @@
+#_*_ encoding: utf-8 _*_
+import uuid
+
+class generate:
+ def __init__(self):
+ self.num=0;
+ self.listid=[];
+ def generate_uuid(self,num):
+ for i in range(int(num)):
+ self.listid.append(uuid.uuid1());
+
+ def get_uuid(self):
+ return self.listid;
+
+if __name__=="__main__":
+ gencode=generate();
+ gencode.generate_uuid(200);
+ keys=gencode.get_uuid();
+ filekeys=file("gencodes.txt",'w');
+ for key in keys:
+ filekeys.write(str(key)+'\n');
+ filekeys.close();
+
diff --git a/Matafight/0007/testDir/importantdiary.py b/Matafight/0007/testDir/importantdiary.py
new file mode 100644
index 00000000..f062a504
--- /dev/null
+++ b/Matafight/0007/testDir/importantdiary.py
@@ -0,0 +1,41 @@
+#_*_ encoding: utf-8 _*_
+import re
+
+class countWord:
+ def __init__(self):
+ self.dic={};
+ self.word="";
+
+
+ def count(self,filename):
+ self.dic={};
+ fopen=file(filename,'r');
+ for lines in fopen.readlines():
+ words=re.findall(r"\w+",lines);
+ for items in words:
+ if items in self.dic.keys():
+ self.dic[items]+=1;
+ else:
+ self.dic[items]=1;
+
+ #对字典value值排序
+ dict= sorted(self.dic.iteritems(), key=lambda d:d[1], reverse = True);
+ self.word=dict[0][0];
+
+ def getWord(self):
+ return self.word;
+
+
+if __name__=="__main__":
+ diarycount=countWord();
+ order=1;
+ importantlist=[];
+ for order in range(1,4):
+ fname="diary"+str(order)+".txt";
+ diarycount.count(fname);
+ importantlist.append(diarycount.getWord());
+ order+=1;
+ for item in importantlist:
+ print str(item)+"\t";
+
+
diff --git a/Matafight/0007/testDir/test.txt b/Matafight/0007/testDir/test.txt
new file mode 100644
index 00000000..a4c321ec
--- /dev/null
+++ b/Matafight/0007/testDir/test.txt
@@ -0,0 +1,3 @@
+what
+#
+kiddingme
\ No newline at end of file
diff --git a/Matafight/0009/getLinks.py b/Matafight/0009/getLinks.py
new file mode 100644
index 00000000..df0d3d24
--- /dev/null
+++ b/Matafight/0009/getLinks.py
@@ -0,0 +1,25 @@
+# _*_ encodeing: utf-8 _*_
+from HTMLParser import HTMLParser
+import urllib2
+
+class myParser(HTMLParser):
+ def __init__(self):
+ HTMLParser.__init__(self);
+ self.flag=0;
+ self.links=[];
+
+ def handle_starttag(self, tag, attrs):
+ if tag == "a":
+ for name,value in attrs:
+ if name =="href":
+ self.links.append(value);
+
+
+if __name__=="__main__":
+ parser=myParser();
+ myurl='http://www.baidu.com';
+ html=urllib2.urlopen(myurl);
+ htmlcode=html.read();
+ parser.feed(htmlcode);
+ print parser.links;
+
diff --git a/Matafight/0011/filtered_word.txt b/Matafight/0011/filtered_word.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/Matafight/0011/filtered_word.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/Matafight/0011/senWord.py b/Matafight/0011/senWord.py
new file mode 100644
index 00000000..e9f331fb
--- /dev/null
+++ b/Matafight/0011/senWord.py
@@ -0,0 +1,33 @@
+# -*-coding:utf-8-*-
+import string
+
+class senseWord():
+ def __init__(self):
+ self.list=[]
+ inputfile=file('filtered_word.txt','r')
+ for lines in inputfile.readlines():
+ self.list.append(lines.decode('utf-8').encode('gbk'))#I've set the file coding type as utf-8
+ inputfile.close()
+ self.list=map(string.strip,self.list);
+ for item in self.list:
+ print item
+ def checkWord(self,word):
+ for words in self.list:
+ if words == word:
+ return True
+ return False
+
+if __name__=='__main__':
+ myCheck=senseWord()
+ ipstr=raw_input()
+ while True:
+ ipstr=raw_input()
+ if ipstr:
+ if(myCheck.checkWord(ipstr)):
+ print 'Freedom'
+ else:
+ print 'humanRight'
+ else:
+ break
+
+
diff --git a/Matafight/0012/ResenWord.py b/Matafight/0012/ResenWord.py
new file mode 100644
index 00000000..052716de
--- /dev/null
+++ b/Matafight/0012/ResenWord.py
@@ -0,0 +1,45 @@
+# -*-coding:utf-8-*-
+import string
+class senseWord():
+ def __init__(self):
+ self.list=[]
+ self.word=[]
+ inputfile=file('filtered_word.txt','r')
+ for lines in inputfile.readlines():
+ self.list.append(lines.decode('utf-8').encode('gbk'))#I've set the file coding type as utf-8
+ inputfile.close()
+ self.list=map(string.strip,self.list);
+
+ def checkWord(self,word):
+ flag=False
+ for words in self.list:
+ if words in word:
+ self.word.append(words)
+ flag= True
+ return flag
+
+ def getWord(self):
+
+ return self.word
+
+if __name__=='__main__':
+ myCheck=senseWord()
+ while True:
+ ipstr=str(raw_input())
+ if ipstr:
+ if(myCheck.checkWord(ipstr)):
+ senseList=myCheck.getWord()
+ for items in senseList:
+ length=len(items.decode('gbk'))
+ torep='*';
+ for i in range(1,length):
+ torep+='*'
+ ipstr=ipstr.replace(items,torep)
+ print ipstr
+ else:
+ print ipstr
+ else:
+ break
+
+
+
diff --git a/Matafight/0012/filtered_word.txt b/Matafight/0012/filtered_word.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/Matafight/0012/filtered_word.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/Mr.Lin/0005/1.jpg b/Mr.Lin/0005/1.jpg
deleted file mode 100644
index 4d839820..00000000
Binary files a/Mr.Lin/0005/1.jpg and /dev/null differ
diff --git a/Mr.Lin/0005/result-1.jpg b/Mr.Lin/0005/result-1.jpg
deleted file mode 100644
index 2b6727c5..00000000
Binary files a/Mr.Lin/0005/result-1.jpg and /dev/null differ
diff --git a/NKUCodingCat/0000/img.jpg b/NKUCodingCat/0000/img.jpg
deleted file mode 100644
index b2d0fc33..00000000
Binary files a/NKUCodingCat/0000/img.jpg and /dev/null differ
diff --git a/NKUCodingCat/0000/res.jpg b/NKUCodingCat/0000/res.jpg
deleted file mode 100644
index 748060d1..00000000
Binary files a/NKUCodingCat/0000/res.jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/dst_img/1_1600x900.jpg b/NKUCodingCat/0005/dst_img/1_1600x900.jpg
deleted file mode 100644
index 1839ff0e..00000000
Binary files a/NKUCodingCat/0005/dst_img/1_1600x900.jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/dst_img/2_1600x900 (1).jpg b/NKUCodingCat/0005/dst_img/2_1600x900 (1).jpg
deleted file mode 100644
index 9022a808..00000000
Binary files a/NKUCodingCat/0005/dst_img/2_1600x900 (1).jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/dst_img/2_1600x900.jpg b/NKUCodingCat/0005/dst_img/2_1600x900.jpg
deleted file mode 100644
index fa6ef10b..00000000
Binary files a/NKUCodingCat/0005/dst_img/2_1600x900.jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/img/1_1600x900.jpg b/NKUCodingCat/0005/img/1_1600x900.jpg
deleted file mode 100644
index 31fd478f..00000000
Binary files a/NKUCodingCat/0005/img/1_1600x900.jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/img/2_1600x900 (1).jpg b/NKUCodingCat/0005/img/2_1600x900 (1).jpg
deleted file mode 100644
index 2ae772df..00000000
Binary files a/NKUCodingCat/0005/img/2_1600x900 (1).jpg and /dev/null differ
diff --git a/NKUCodingCat/0005/img/2_1600x900.jpg b/NKUCodingCat/0005/img/2_1600x900.jpg
deleted file mode 100644
index c41bb26a..00000000
Binary files a/NKUCodingCat/0005/img/2_1600x900.jpg and /dev/null differ
diff --git a/NKUCodingCat/0010/code.jpg b/NKUCodingCat/0010/code.jpg
deleted file mode 100644
index a7a63868..00000000
Binary files a/NKUCodingCat/0010/code.jpg and /dev/null differ
diff --git a/NKUCodingCat/0024/0024.sql b/NKUCodingCat/0024/0024.sql
deleted file mode 100644
index a07fa402..00000000
--- a/NKUCodingCat/0024/0024.sql
+++ /dev/null
@@ -1,67 +0,0 @@
-# SQL-Front 5.1 (Build 4.16)
-
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */;
-/*!40101 SET SQL_MODE='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */;
-/*!40103 SET SQL_NOTES='ON' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS */;
-/*!40014 SET FOREIGN_KEY_CHECKS=0 */;
-
-
-# Host: localhost Database: 0024
-# ------------------------------------------------------
-# Server version 5.5.38
-
-DROP DATABASE IF EXISTS `0024`;
-CREATE DATABASE `0024` /*!40100 DEFAULT CHARACTER SET utf8 */;
-USE `0024`;
-
-#
-# Source for table code
-#
-
-DROP TABLE IF EXISTS `code`;
-CREATE TABLE `code` (
- `id` int(20) NOT NULL DEFAULT '0',
- `to` text NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
-#
-# Dumping data for table code
-#
-
-LOCK TABLES `code` WRITE;
-/*!40000 ALTER TABLE `code` DISABLE KEYS */;
-INSERT INTO `code` VALUES (13,'haiohpd');
-INSERT INTO `code` VALUES (14,'daduwwg');
-INSERT INTO `code` VALUES (9,'7');
-INSERT INTO `code` VALUES (11,'9');
-/*!40000 ALTER TABLE `code` ENABLE KEYS */;
-UNLOCK TABLES;
-
-#
-# Source for table max
-#
-
-DROP TABLE IF EXISTS `max`;
-CREATE TABLE `max` (
- `pro` varchar(255) DEFAULT NULL,
- `max` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
-#
-# Dumping data for table max
-#
-
-LOCK TABLES `max` WRITE;
-/*!40000 ALTER TABLE `max` DISABLE KEYS */;
-INSERT INTO `max` VALUES ('max',15);
-/*!40000 ALTER TABLE `max` ENABLE KEYS */;
-UNLOCK TABLES;
-
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
diff --git a/NKUCodingCat/0024/SQLIO.py b/NKUCodingCat/0024/SQLIO.py
deleted file mode 100644
index 910189d9..00000000
--- a/NKUCodingCat/0024/SQLIO.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#coding=utf-8
-import time, os, json, MySQLdb, HTMLParser, cgi
-def SQL_init():
- db = MySQLdb.connect("127.0.0.1","root","root","0024" )
- return db.cursor()
-def SQL_max(new=None):
- cursor = SQL_init()
- if new != None:
- sql="""UPDATE `max` SET `max`=%d WHERE `pro`='max'"""%new
- cursor.execute(sql)
- return True
- else:
- sql="""SELECT * FROM `max` WHERE `pro`='max'"""
- cursor.execute(sql)
- max = cursor.fetchall()[0][1]
- SQL_max(max+1)
- return max
-def SQL_in(task):
- max = SQL_max()
- cursor = SQL_init()
- sql = """INSERT INTO `code` SET `id`=%d,`to`='%s';"""%(max, task)
- cursor.execute(sql)
- return True
-def SQL_out():
- cursor = SQL_init()
- sql = """SELECT * FROM `code`"""
- cursor.execute(sql)
- return cursor.fetchall()
-def SQL_del(id):
- cursor = SQL_init()
- sql = """DELETE FROM `code` WHERE `id`=%d"""%id
- cursor.execute(sql)
- return json.dumps(cursor.fetchall())
-#-----------
-Temp = """
-
-
%s
-
-
-
-
-
-"""
-
-
-def PageMake():
- Data = SQL_out()
- All = ""
- Data = sorted(Data,key=lambda a:a[0] )
- for i in Data:
- #print i
- All+=Temp%(str(i[1]),int(i[0]))
- return All
\ No newline at end of file
diff --git a/NKUCodingCat/0024/main.py b/NKUCodingCat/0024/main.py
deleted file mode 100644
index ba03e834..00000000
--- a/NKUCodingCat/0024/main.py
+++ /dev/null
@@ -1,71 +0,0 @@
-#coding=utf-8
-const = """
-
-
-
-
-
-
-
-
-
TodoList应用演示
-
-
-
-
-
-
-"""
-
-
-from bottle import static_file,route, run, post, request, redirect, error
-import os, urllib,re,json,time
-Root = os.path.split(os.path.realpath(__file__))[0]+"/static/"
-import SQLIO
-
-@route('/todo')
-def index():
- return const.format(SQLIO.PageMake(),)
-@post('/todo')
-def Accept():
- Req = request.body.read()
- L = re.split("&",Req)
- M = {}
- for i in L:
- A = re.split("=",i)
- M[A[0]] = urllib.unquote(A[1])
- for j in M.keys():
- if re.findall("id-",j):
- SQLIO.SQL_del(int(j[3:]))
- redirect('/todo', 302)
- try:
- type = M["new"]
- newtask = M["newtask"]
- except:
- redirect('/error', 404)
- if newtask != "":
- SQLIO.SQL_in(newtask)
- redirect('/todo', 302)
- else:
- return "=.=所以你想添加什么任务呀"
-
-@route('/error')
-def err():
- return "虽然不知道你在干什么但是触发了服务器错误呢"
-@route('/static/')
-def server_static(filename):
- return static_file(filename, root=Root)
-run(host='localhost',port=8080)
\ No newline at end of file
diff --git a/NKUCodingCat/0024/static/css.css b/NKUCodingCat/0024/static/css.css
deleted file mode 100644
index da2076eb..00000000
--- a/NKUCodingCat/0024/static/css.css
+++ /dev/null
@@ -1 +0,0 @@
-h1{color:green;}table,th,td{border:1px solid blue;}table{border-collapse:collapse;width:100%;}th{height:50px;}td.task{width:70%;}input#delete{font-size:15px;color:blue;background-color:#FFFFFF;border-width:0;cursor:pointer;}textarea{vertical-align:middle;width:500px;height:100px;}input#submit{width:107px;height:42px;border-width:0;font-size:17px;font-weight:500;border-radius:6px;cursor:pointer;}
\ No newline at end of file
diff --git a/NecoSama/README.md b/NecoSama/README.md
new file mode 100644
index 00000000..da4593c4
--- /dev/null
+++ b/NecoSama/README.md
@@ -0,0 +1,2 @@
+# My Repository
+My solution is shown as the url:
diff --git a/NeilLi1992/0000/new_image.jpg b/NeilLi1992/0000/new_image.jpg
deleted file mode 100644
index 95e69b6e..00000000
Binary files a/NeilLi1992/0000/new_image.jpg and /dev/null differ
diff --git a/NeilLi1992/0000/test.jpg b/NeilLi1992/0000/test.jpg
deleted file mode 100644
index 357f1dc8..00000000
Binary files a/NeilLi1992/0000/test.jpg and /dev/null differ
diff --git a/PyBeaner/0001/coupon.py b/PyBeaner/0001/coupon.py
new file mode 100644
index 00000000..460b6182
--- /dev/null
+++ b/PyBeaner/0001/coupon.py
@@ -0,0 +1,30 @@
+__author__ = 'PyBeaner'
+from random import choice
+import string
+
+chars = string.ascii_uppercase + string.digits
+
+
+def generate_coupons(count, coupon_length=5):
+ coupons = []
+ for i in range(count):
+ coupon = generate_one_coupon(coupon_length=coupon_length)
+ while coupon in coupons:
+ coupon = generate_one_coupon(coupon_length)
+
+ coupons.append(coupon)
+
+ return coupons
+
+
+def generate_one_coupon(coupon_length=5):
+ coupon = []
+ for i in range(coupon_length):
+ ch = choice(chars)
+ coupon.append(ch)
+ return "".join(coupon)
+
+
+if __name__ == '__main__':
+ coupons = generate_coupons(200, 5)
+ print(coupons)
diff --git a/PyBeaner/0002/save_to_mysql.py b/PyBeaner/0002/save_to_mysql.py
new file mode 100644
index 00000000..a9a7f9bf
--- /dev/null
+++ b/PyBeaner/0002/save_to_mysql.py
@@ -0,0 +1,26 @@
+__author__ = 'PyBeaner'
+import pymysql.cursors
+
+
+def save_to_mysql(coupons):
+ try:
+ connection = pymysql.connect(host='localhost',
+ user='user',
+ passwd='passwd',
+ db='db',
+ cursorclass=pymysql.cursors.DictCursor)
+
+ with connection.cursor() as cursor:
+ select_sql = "SELECT coupon FROM coupons where coupon='%s'"
+ insert_sql = "INSERT INTO coupons VALUES (%s);"
+ for coupon in coupons:
+ cursor.excute(select_sql, (coupon,))
+ result = cursor.fetchone()
+ if result:
+ continue
+
+ cursor.excute(insert_sql, (coupon,))
+
+ connection.commit()
+ finally:
+ connection.close()
diff --git a/PyBeaner/0004/wc.py b/PyBeaner/0004/wc.py
new file mode 100644
index 00000000..8af8b03a
--- /dev/null
+++ b/PyBeaner/0004/wc.py
@@ -0,0 +1,11 @@
+from collections import Counter
+import re
+
+__author__ = "PyBeaner"
+
+with open(r"F:\Program Files\Git\doc\git\html\RelNotes\1.5.0.1.txt") as f:
+ word_pat = re.compile("^[A-Za-z]+$")
+ file_words = [word for line in f for word in line.split()
+ if len(word) > 1 and word_pat.match(word)]
+
+print(Counter(file_words))
diff --git a/PyBeaner/0007/code_lines.py b/PyBeaner/0007/code_lines.py
new file mode 100644
index 00000000..81484695
--- /dev/null
+++ b/PyBeaner/0007/code_lines.py
@@ -0,0 +1,43 @@
+# coding=utf-8
+__author__ = 'PyBeaner'
+import os
+import fnmatch
+
+total_lines = 0
+code_lines = 0
+empty_lines = 0
+comment_lines = 0
+
+
+def count_line(line):
+ line = line.lstrip()
+ global comment_lines, empty_lines, total_lines, code_lines
+
+ total_lines += 1
+ if line.startswith("#"):
+ comment_lines += 1
+ elif not line:
+ empty_lines += 1
+ else:
+ code_lines += 1
+
+
+def scan_dir(directory, suffix="*.py"):
+ directory = os.path.abspath(directory)
+ print("Scanning files in %s ..." % directory)
+ for cur_dir, dirs, files in os.walk(directory):
+ for file in files:
+ if not fnmatch.fnmatch(file, suffix):
+ continue
+ file_path = os.path.join(cur_dir, file)
+ with open(file_path, errors="replace") as f:
+ for line in f:
+ count_line(line)
+
+
+if __name__ == '__main__':
+ scan_dir(r"../..")
+ print("Total lines:%d" % total_lines)
+ print("Code lines:%d" % code_lines)
+ print("Empty lines:%d" % empty_lines)
+ print("Comment lines:%d" % comment_lines)
diff --git a/PyBeaner/0008/text_in_html.py b/PyBeaner/0008/text_in_html.py
new file mode 100644
index 00000000..a184018d
--- /dev/null
+++ b/PyBeaner/0008/text_in_html.py
@@ -0,0 +1,21 @@
+# coding=utf-8
+__author__ = 'PyBeaner'
+from bs4 import BeautifulSoup
+
+
+def get_text(html):
+ soup = BeautifulSoup(html)
+ return soup.text
+
+
+if __name__ == '__main__':
+ import requests
+
+ r = requests.get("https://github.com/")
+ html = r.text
+ text = get_text(html)
+ with open("html.txt", "w+", errors="replace") as f:
+ print(text, file=f)
+ f.seek(0)
+ for line in f:
+ print(line)
diff --git a/PyBeaner/0009/link_in_html.py b/PyBeaner/0009/link_in_html.py
new file mode 100644
index 00000000..f78f8d07
--- /dev/null
+++ b/PyBeaner/0009/link_in_html.py
@@ -0,0 +1,22 @@
+# coding=utf-8
+__author__ = 'PyBeaner'
+from bs4 import BeautifulSoup
+
+
+def get_links(html):
+ soup = BeautifulSoup(html)
+ links = []
+ for link in soup.find_all("a"):
+ href = link["href"]
+ if href.startswith("http"):
+ links.append(href)
+ return links
+
+
+if __name__ == '__main__':
+ import requests
+
+ r = requests.get("https://github.com/")
+ html = r.text
+ links = get_links(html)
+ print(links)
diff --git a/PyBeaner/0011/filter.py b/PyBeaner/0011/filter.py
new file mode 100644
index 00000000..03633390
--- /dev/null
+++ b/PyBeaner/0011/filter.py
@@ -0,0 +1,9 @@
+__author__ = 'PyBeaner'
+
+words = open("filtered_words.txt").read().split()
+
+word = input("Please Input an word:")
+if word in words:
+ print("Freedom")
+else:
+ print("Human Rights")
diff --git a/PyBeaner/0011/filtered_words.txt b/PyBeaner/0011/filtered_words.txt
new file mode 100644
index 00000000..444eb7c6
--- /dev/null
+++ b/PyBeaner/0011/filtered_words.txt
@@ -0,0 +1,11 @@
+
+Ա
+Ա
+쵼
+ţ
+ţ
+
+
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/PyBeaner/0012/filter.py b/PyBeaner/0012/filter.py
new file mode 100644
index 00000000..4e272ce6
--- /dev/null
+++ b/PyBeaner/0012/filter.py
@@ -0,0 +1,9 @@
+__author__ = 'PyBeaner'
+words = open("filtered_words.txt").read().split()
+
+user_input = input("Please Input an word:")
+
+for word in words:
+ user_input = user_input.replace(word, "*" * len(word))
+
+print(user_input)
diff --git a/PyBeaner/0012/filtered_words.txt b/PyBeaner/0012/filtered_words.txt
new file mode 100644
index 00000000..444eb7c6
--- /dev/null
+++ b/PyBeaner/0012/filtered_words.txt
@@ -0,0 +1,11 @@
+
+Ա
+Ա
+쵼
+ţ
+ţ
+
+
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/PyBeaner/__init__.py b/PyBeaner/__init__.py
new file mode 100644
index 00000000..88c7a442
--- /dev/null
+++ b/PyBeaner/__init__.py
@@ -0,0 +1 @@
+__author__ = 'PyBeaner'
diff --git a/README.md b/README.md
index 35ee7952..5d75dd92 100644
--- a/README.md
+++ b/README.md
@@ -3,23 +3,25 @@ python
Show Me the Code Python version.
+2015年8月10日更新:
+【注】Pull Request 请提交你个人的仓库 URL 链接地址。
### How to Add your solutions:
- * fork this repo
- * create a folder named with your github name
- * create a folder named the problem num
- * add your solution in the folder
+ * Fork this repo.
+ * Create a folder named with your github name.
+ * Create a folder named the problem num.
+ * Add your solution in the folder.
For example, if you wanna add a solution for problem 0001, you should do like this:
- * fork Show-Me-the-Code/python
- * git clone YOUR_REPO_URL SOME_DIR
- * cd SOME_DIR
- * mkdir YOUR_GITHUB_USER_NAME
- * cd YOU_GITHUB_USER_NAME
- * mkdir 0001
- * cd 0001
- * and the write some code & test it
+ * Fork `Show-Me-the-Code/python`.
+ * git clone `YOUR_REPO_URL SOME_DIR`.
+ * cd `SOME_DIR`.
+ * mkdir `YOUR_GITHUB_USER_NAME`.
+ * cd `YOU_GITHUB_USER_NAME`.
+ * mkdir `0001`.
+ * cd `0001`.
+ * and the write some code & test it.
-if all these steps done, send us an pull request. After we accepte your request, we'll invite you to this group.
+If all these steps done, send us an pull request. After we accept your request, we'll invite you to this group.
diff --git a/Raynxxx/0000/face.jpg b/Raynxxx/0000/face.jpg
deleted file mode 100644
index 4548ad62..00000000
Binary files a/Raynxxx/0000/face.jpg and /dev/null differ
diff --git a/Raynxxx/0000/face4.jpg b/Raynxxx/0000/face4.jpg
deleted file mode 100644
index 27e45240..00000000
Binary files a/Raynxxx/0000/face4.jpg and /dev/null differ
diff --git a/ShaoyuanLi/0000/a.png b/ShaoyuanLi/0000/a.png
new file mode 100644
index 00000000..5f6b0113
Binary files /dev/null and b/ShaoyuanLi/0000/a.png differ
diff --git a/ShaoyuanLi/0000/example.py b/ShaoyuanLi/0000/example.py
new file mode 100644
index 00000000..c04af4d6
--- /dev/null
+++ b/ShaoyuanLi/0000/example.py
@@ -0,0 +1,9 @@
+import Image,ImageDraw,ImageFont
+
+myfont=ImageFont.truetype("arial.ttf", 35)
+im=Image.open("touxiang.png")
+draw=ImageDraw.Draw(im)
+x,y=im.size
+draw.text((x-x/5,y/8),"8",fill=(255,0,0),font=myfont)
+im.save("result.png", "PNG")
+
diff --git a/ShaoyuanLi/0000/exmaple.py b/ShaoyuanLi/0000/exmaple.py
new file mode 100644
index 00000000..c04af4d6
--- /dev/null
+++ b/ShaoyuanLi/0000/exmaple.py
@@ -0,0 +1,9 @@
+import Image,ImageDraw,ImageFont
+
+myfont=ImageFont.truetype("arial.ttf", 35)
+im=Image.open("touxiang.png")
+draw=ImageDraw.Draw(im)
+x,y=im.size
+draw.text((x-x/5,y/8),"8",fill=(255,0,0),font=myfont)
+im.save("result.png", "PNG")
+
diff --git a/ShaoyuanLi/0000/touxiang.png b/ShaoyuanLi/0000/touxiang.png
new file mode 100644
index 00000000..c3222d12
Binary files /dev/null and b/ShaoyuanLi/0000/touxiang.png differ
diff --git a/ShaoyuanLi/0001/0001.py b/ShaoyuanLi/0001/0001.py
new file mode 100644
index 00000000..278979a6
--- /dev/null
+++ b/ShaoyuanLi/0001/0001.py
@@ -0,0 +1,24 @@
+# -*- coding: cp936 -*-
+import random
+#200鳤Ϊ8Ż룬ֵ伯ּĸ
+def generate_key(number=200,length=8):
+ char_set="abcdefghijklmnopqrstuvwxyz0123456789"
+ result=""
+ for i in range(0, number):
+ temp=""
+ while(temp==""):
+ for j in range(0,length):
+ temp=temp+char_set[random.randint(0,35)]
+#жɵŻǷ֮ǰظ
+ if(result.find(temp)==-1):
+ result=result+"%d "%(i+1)+temp
+ else:
+ temp=""
+ result=result+'\n'
+ return result
+def file_write():
+ fp=open("result.txt",'w')
+ fp.writelines(generate_key())
+ fp.close()
+if __name__ == '__main__':
+ file_write()
diff --git a/ShaoyuanLi/0001/result.txt b/ShaoyuanLi/0001/result.txt
new file mode 100644
index 00000000..8b16cadb
--- /dev/null
+++ b/ShaoyuanLi/0001/result.txt
@@ -0,0 +1,200 @@
+1 nxmmjq5u
+2 5hoe20v9
+3 elb1hrv0
+4 ls6htkmx
+5 qwzg0o39
+6 97reovrl
+7 zcwu57gj
+8 gk8cgovi
+9 prciw3q0
+10 vnf9n6b8
+11 fps1hiqw
+12 j33wf93a
+13 zwue5e71
+14 0nissnay
+15 feghkqmx
+16 io4kuhcq
+17 x6u8t76p
+18 1h61e4ng
+19 qbl5ebk8
+20 6jual6xm
+21 vjocsl6m
+22 n61d32ud
+23 p4m2iphq
+24 pyacaotz
+25 04qoagrf
+26 6crk5pqt
+27 s3ahsg3m
+28 mqzy3c6s
+29 sn7zd09i
+30 cf8zzveh
+31 xsudv4pb
+32 trnqj7fp
+33 wcm0p84l
+34 4ipcf95a
+35 s9xq6xcy
+36 phpz7h8l
+37 o91mes3g
+38 t6uknpae
+39 z6c5xi23
+40 yye3x973
+41 er1yto5z
+42 sfap7fsl
+43 bziiqf36
+44 ybg4dhmk
+45 y1mmf067
+46 33118f0r
+47 z5qmqqq7
+48 ryb0k7zw
+49 tedbcsxp
+50 yeq6xacz
+51 sgxvn5ji
+52 klymd488
+53 xfmwvjq2
+54 auy0dic5
+55 gis55ucl
+56 mcq6cr17
+57 o96zscnz
+58 hk2rlohj
+59 0ntnb0q4
+60 xw1v4xel
+61 nha9skdv
+62 k1kv2y97
+63 gbfz5l0v
+64 an80u8wr
+65 4pc3njpa
+66 6it3rlw7
+67 6mj7rtab
+68 9uahvgry
+69 680wn4my
+70 251guth4
+71 zjd0za7k
+72 n0z7wbeh
+73 j0h3jjvz
+74 f9oux370
+75 8sky09ux
+76 eax249ug
+77 477aqrpo
+78 vucjphwm
+79 ud32a2e4
+80 nhquv87l
+81 f4um10au
+82 m5jkru0w
+83 rpvzm6tm
+84 dykl1h4p
+85 zmuwu3o0
+86 j7giqlex
+87 vwa69otf
+88 6sha6mfq
+89 fpdf4wm1
+90 c04s7ymz
+91 ks87sv0b
+92 jhshq4xo
+93 96zplwyn
+94 muahr9je
+95 t218gs1g
+96 xcs602r5
+97 2d44deyq
+98 pdh1yvgf
+99 tejxc3xc
+100 ci2bx2y0
+101 ei2ic9q3
+102 1txrhspe
+103 0ut7su6t
+104 nc90orev
+105 67dn6ccd
+106 6eopvnqi
+107 a8klb1uz
+108 nwrqv1q4
+109 hz8r2ylb
+110 dnklsvf8
+111 t300hvo2
+112 lx35alfv
+113 42061qcj
+114 na4roat2
+115 3cpr59zl
+116 cwtfdnw1
+117 ig13dgp8
+118 1l00kvoe
+119 pzeijnui
+120 cquvplvg
+121 46os5qq4
+122 0gnccy9u
+123 utcbxjxy
+124 tfy5z7oj
+125 9c90fgqa
+126 z8c4glb3
+127 vhvx6jsw
+128 at0dknzh
+129 3t4n1zmw
+130 ohzbmj4m
+131 8yw8thmv
+132 eafvf0u2
+133 9k74zdd9
+134 s5wnndk8
+135 pzn80syp
+136 pwwrz5y3
+137 x4j7ea5q
+138 tyd2pf35
+139 lxz2tyso
+140 4sjkim2k
+141 hkgxx7zo
+142 xfci5bvl
+143 6m9ejxq6
+144 wfw60y3x
+145 yqvlczdy
+146 1xddbfio
+147 6emvqho0
+148 l4x17hf6
+149 fm5eibvy
+150 l8vvvosj
+151 wbhffvzm
+152 zwzcsx91
+153 q7xxd9fw
+154 x0xxczvo
+155 avp7wbsd
+156 2pqfl04c
+157 ropj6jx6
+158 andgzoxe
+159 xn11gqgu
+160 cc31xxhx
+161 22cuf67k
+162 ikuypkzs
+163 k2hawt99
+164 kb2f3z36
+165 wwdpa84t
+166 qcmqffx9
+167 1ia6qv0s
+168 5s2flplu
+169 bk1vseyl
+170 h1eq9td4
+171 b18q9a62
+172 daryg2hx
+173 2poyp7tt
+174 9xhoyk5q
+175 xcav6ut9
+176 j0wuv9hk
+177 cfyradja
+178 79kb1jmr
+179 jdo0ydys
+180 zyfy4yly
+181 dsr2j44o
+182 xfh51sce
+183 44gzcgpf
+184 x6kh99np
+185 asr1r9vu
+186 27hiy93f
+187 ggl2442w
+188 jmkf60w7
+189 qrhax89p
+190 whuhnbtc
+191 74hvzjlh
+192 05xfn6y8
+193 7gp768d5
+194 cu3o1xm1
+195 6hchvuy6
+196 ki975jre
+197 9q296wk4
+198 48l0a9nv
+199 ssx4zopx
+200 yscuw50k
diff --git a/ShaoyuanLi/0004/0004.py b/ShaoyuanLi/0004/0004.py
new file mode 100644
index 00000000..c80d04e8
--- /dev/null
+++ b/ShaoyuanLi/0004/0004.py
@@ -0,0 +1,19 @@
+# -*- coding: cp936 -*-
+import re
+fin=open("example.txt","r")
+fout=open("result.txt","w")
+str=fin.read()
+#ƥʽ
+reObj=re.compile("\b?([a-zA-Z]+)\b?")
+words=reObj.findall(str)
+#ֵ
+word_dict={}
+#ԵʵСдΪֵͳƣͬʱҪ
+for word in words:
+ if(word_dict.has_key(word)):
+ word_dict[word.lower()]=max(word_dict[word.lower()],words.count(word.lower())+words.count(word.upper())+words.count(word))
+ else:
+ word_dict[word.lower()]=max(0,words.count(word.lower())+words.count(word.upper())+words.count(word))
+for(word,number) in word_dict.items():
+ fout.write(word+":%d\n"%number)
+
diff --git a/ShaoyuanLi/0004/example.txt b/ShaoyuanLi/0004/example.txt
new file mode 100644
index 00000000..fd6c17d4
--- /dev/null
+++ b/ShaoyuanLi/0004/example.txt
@@ -0,0 +1 @@
+In the latest move to support the economy, Shanghai, Beijing, Chongqing and six other provinces and municipalities will allow banks to refinance high-quality credit assets rated by the People's Bank of China, said the central bank, as the program was first introduced in Guangdong and Shandong provinces last year.
\ No newline at end of file
diff --git a/ShaoyuanLi/0004/result.txt b/ShaoyuanLi/0004/result.txt
new file mode 100644
index 00000000..aa415b37
--- /dev/null
+++ b/ShaoyuanLi/0004/result.txt
@@ -0,0 +1,41 @@
+and:6
+beijing:1
+shandong:1
+six:2
+people:1
+move:2
+year:2
+high:2
+as:2
+program:2
+in:2
+guangdong:1
+quality:2
+provinces:4
+rated:2
+support:2
+shanghai:1
+to:4
+other:2
+was:2
+economy:2
+municipalities:2
+refinance:2
+said:2
+china:1
+last:2
+by:2
+bank:2
+chongqing:1
+introduced:2
+central:2
+assets:2
+of:2
+will:2
+credit:2
+s:2
+allow:2
+banks:2
+the:10
+first:2
+latest:2
diff --git a/Silocean/0000/DejaVuSansMono.ttf b/Silocean/0000/DejaVuSansMono.ttf
new file mode 100644
index 00000000..9bebb47e
Binary files /dev/null and b/Silocean/0000/DejaVuSansMono.ttf differ
diff --git a/Silocean/0000/Test.py b/Silocean/0000/Test.py
new file mode 100644
index 00000000..d1b6c689
--- /dev/null
+++ b/Silocean/0000/Test.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+"""
+Created on Fri Jun 5 13:40:53 2015
+
+@author: Tracy
+"""
+
+from PIL import Image
+from PIL import ImageDraw
+from PIL import ImageFont
+
+img = Image.open('icon.jpg')
+draw = ImageDraw.Draw(img)
+font = ImageFont.truetype('DejaVuSansMono.ttf',100)
+
+draw.text((img.size[0]-100,30),"3",(255,0,0), font)
+
+img.save('result.jpg')
diff --git a/Silocean/0001/Test.py b/Silocean/0001/Test.py
new file mode 100644
index 00000000..6c2d780c
--- /dev/null
+++ b/Silocean/0001/Test.py
@@ -0,0 +1,12 @@
+# -*-coding:utf-8-*-
+__author__ = 'Tracy'
+
+import uuid
+
+f = open('keys.txt', 'w')
+
+for i in range(200):
+ f.write(str(uuid.uuid1())+"\n")
+
+f.close()
+
diff --git a/Silocean/0001/keys.txt b/Silocean/0001/keys.txt
new file mode 100644
index 00000000..bc2a4a6c
--- /dev/null
+++ b/Silocean/0001/keys.txt
@@ -0,0 +1,200 @@
+2d41c530-0f55-11e5-8f5c-005056c00008
+2d42af8f-0f55-11e5-b4d8-005056c00008
+2d42af90-0f55-11e5-b7bb-005056c00008
+2d42af91-0f55-11e5-b9a1-005056c00008
+2d42af92-0f55-11e5-bf53-005056c00008
+2d42af93-0f55-11e5-bc30-005056c00008
+2d42af94-0f55-11e5-9f13-005056c00008
+2d42d69e-0f55-11e5-97ef-005056c00008
+2d42d69f-0f55-11e5-b24e-005056c00008
+2d42d6a0-0f55-11e5-9a7d-005056c00008
+2d42d6a1-0f55-11e5-8a21-005056c00008
+2d42d6a2-0f55-11e5-aa17-005056c00008
+2d42d6a3-0f55-11e5-8808-005056c00008
+2d42d6a4-0f55-11e5-b193-005056c00008
+2d42d6a5-0f55-11e5-b34f-005056c00008
+2d42d6a6-0f55-11e5-ae3a-005056c00008
+2d42d6a7-0f55-11e5-867a-005056c00008
+2d42d6a8-0f55-11e5-94f6-005056c00008
+2d42d6a9-0f55-11e5-8ccf-005056c00008
+2d42d6aa-0f55-11e5-9956-005056c00008
+2d42d6ab-0f55-11e5-b154-005056c00008
+2d42d6ac-0f55-11e5-be92-005056c00008
+2d42d6ad-0f55-11e5-ac5c-005056c00008
+2d42d6ae-0f55-11e5-a12a-005056c00008
+2d42d6af-0f55-11e5-88f8-005056c00008
+2d42d6b0-0f55-11e5-9a80-005056c00008
+2d42d6b1-0f55-11e5-ab69-005056c00008
+2d42d6b2-0f55-11e5-aa4e-005056c00008
+2d42d6b3-0f55-11e5-b419-005056c00008
+2d42d6b4-0f55-11e5-be0e-005056c00008
+2d42d6b5-0f55-11e5-8e0a-005056c00008
+2d42d6b6-0f55-11e5-8e7e-005056c00008
+2d42d6b7-0f55-11e5-9193-005056c00008
+2d42d6b8-0f55-11e5-a974-005056c00008
+2d42d6b9-0f55-11e5-84bb-005056c00008
+2d42d6ba-0f55-11e5-b16a-005056c00008
+2d42d6bb-0f55-11e5-a432-005056c00008
+2d42d6bc-0f55-11e5-b2cb-005056c00008
+2d42d6bd-0f55-11e5-b6a8-005056c00008
+2d42d6be-0f55-11e5-806a-005056c00008
+2d42d6bf-0f55-11e5-9979-005056c00008
+2d42d6c0-0f55-11e5-8f31-005056c00008
+2d42d6c1-0f55-11e5-9f4b-005056c00008
+2d42d6c2-0f55-11e5-afa9-005056c00008
+2d42d6c3-0f55-11e5-9718-005056c00008
+2d42d6c4-0f55-11e5-b206-005056c00008
+2d42d6c5-0f55-11e5-857c-005056c00008
+2d42d6c6-0f55-11e5-b451-005056c00008
+2d42d6c7-0f55-11e5-ae68-005056c00008
+2d42d6c8-0f55-11e5-8b37-005056c00008
+2d42d6c9-0f55-11e5-944b-005056c00008
+2d42d6ca-0f55-11e5-9348-005056c00008
+2d42d6cb-0f55-11e5-b068-005056c00008
+2d42d6cc-0f55-11e5-9457-005056c00008
+2d42d6cd-0f55-11e5-8d79-005056c00008
+2d42d6ce-0f55-11e5-9e25-005056c00008
+2d42d6cf-0f55-11e5-b0b3-005056c00008
+2d42d6d0-0f55-11e5-a097-005056c00008
+2d42d6d1-0f55-11e5-85d4-005056c00008
+2d42fdae-0f55-11e5-976f-005056c00008
+2d42fdaf-0f55-11e5-a37b-005056c00008
+2d42fdb0-0f55-11e5-905e-005056c00008
+2d42fdb1-0f55-11e5-83af-005056c00008
+2d42fdb2-0f55-11e5-b541-005056c00008
+2d42fdb3-0f55-11e5-b6e0-005056c00008
+2d42fdb4-0f55-11e5-b07b-005056c00008
+2d42fdb5-0f55-11e5-b458-005056c00008
+2d42fdb6-0f55-11e5-927d-005056c00008
+2d42fdb7-0f55-11e5-9bb9-005056c00008
+2d42fdb8-0f55-11e5-a37e-005056c00008
+2d42fdb9-0f55-11e5-9b60-005056c00008
+2d42fdba-0f55-11e5-8b8b-005056c00008
+2d42fdbb-0f55-11e5-bc71-005056c00008
+2d42fdbc-0f55-11e5-a6a3-005056c00008
+2d42fdbd-0f55-11e5-95eb-005056c00008
+2d42fdbe-0f55-11e5-b6c7-005056c00008
+2d42fdbf-0f55-11e5-8022-005056c00008
+2d42fdc0-0f55-11e5-91e1-005056c00008
+2d42fdc1-0f55-11e5-881e-005056c00008
+2d42fdc2-0f55-11e5-bbf8-005056c00008
+2d42fdc3-0f55-11e5-82cc-005056c00008
+2d42fdc4-0f55-11e5-b432-005056c00008
+2d42fdc5-0f55-11e5-9b5e-005056c00008
+2d42fdc6-0f55-11e5-9569-005056c00008
+2d42fdc7-0f55-11e5-93cb-005056c00008
+2d42fdc8-0f55-11e5-ac62-005056c00008
+2d42fdc9-0f55-11e5-8546-005056c00008
+2d42fdca-0f55-11e5-94a2-005056c00008
+2d42fdcb-0f55-11e5-aaa3-005056c00008
+2d42fdcc-0f55-11e5-8662-005056c00008
+2d42fdcd-0f55-11e5-8754-005056c00008
+2d42fdce-0f55-11e5-921d-005056c00008
+2d42fdcf-0f55-11e5-87f1-005056c00008
+2d42fdd0-0f55-11e5-8f64-005056c00008
+2d42fdd1-0f55-11e5-865c-005056c00008
+2d42fdd2-0f55-11e5-82fe-005056c00008
+2d42fdd3-0f55-11e5-a5c7-005056c00008
+2d42fdd4-0f55-11e5-8040-005056c00008
+2d42fdd5-0f55-11e5-b875-005056c00008
+2d42fdd6-0f55-11e5-9c3e-005056c00008
+2d42fdd7-0f55-11e5-8f2d-005056c00008
+2d42fdd8-0f55-11e5-8a4a-005056c00008
+2d42fdd9-0f55-11e5-b183-005056c00008
+2d42fdda-0f55-11e5-b57f-005056c00008
+2d42fddb-0f55-11e5-8df2-005056c00008
+2d42fddc-0f55-11e5-b25f-005056c00008
+2d42fddd-0f55-11e5-b1a7-005056c00008
+2d42fdde-0f55-11e5-8a7e-005056c00008
+2d42fddf-0f55-11e5-8e69-005056c00008
+2d42fde0-0f55-11e5-b08c-005056c00008
+2d42fde1-0f55-11e5-8b4d-005056c00008
+2d4324c0-0f55-11e5-8a3d-005056c00008
+2d4324c1-0f55-11e5-8e21-005056c00008
+2d4324c2-0f55-11e5-a739-005056c00008
+2d4324c3-0f55-11e5-be1c-005056c00008
+2d4324c4-0f55-11e5-b3cb-005056c00008
+2d4324c5-0f55-11e5-8f7f-005056c00008
+2d4324c6-0f55-11e5-8e36-005056c00008
+2d4324c7-0f55-11e5-b89a-005056c00008
+2d4324c8-0f55-11e5-ba2f-005056c00008
+2d4324c9-0f55-11e5-bde1-005056c00008
+2d4324ca-0f55-11e5-b995-005056c00008
+2d4324cb-0f55-11e5-9dff-005056c00008
+2d4324cc-0f55-11e5-ae22-005056c00008
+2d4324cd-0f55-11e5-b3a8-005056c00008
+2d4324ce-0f55-11e5-9d75-005056c00008
+2d4324cf-0f55-11e5-a491-005056c00008
+2d4324d0-0f55-11e5-a95b-005056c00008
+2d4324d1-0f55-11e5-87cc-005056c00008
+2d4324d2-0f55-11e5-9002-005056c00008
+2d4324d3-0f55-11e5-a70a-005056c00008
+2d4324d4-0f55-11e5-82d0-005056c00008
+2d4324d5-0f55-11e5-99f9-005056c00008
+2d4324d6-0f55-11e5-bb48-005056c00008
+2d4324d7-0f55-11e5-86bf-005056c00008
+2d4324d8-0f55-11e5-abe3-005056c00008
+2d4324d9-0f55-11e5-8ca4-005056c00008
+2d4324da-0f55-11e5-9ab8-005056c00008
+2d4324db-0f55-11e5-bbc0-005056c00008
+2d4324dc-0f55-11e5-829f-005056c00008
+2d4324dd-0f55-11e5-b85f-005056c00008
+2d4324de-0f55-11e5-9924-005056c00008
+2d4324df-0f55-11e5-be66-005056c00008
+2d4324e0-0f55-11e5-a782-005056c00008
+2d4324e1-0f55-11e5-a1bb-005056c00008
+2d4324e2-0f55-11e5-9a39-005056c00008
+2d4324e3-0f55-11e5-afa4-005056c00008
+2d4324e4-0f55-11e5-b056-005056c00008
+2d4324e5-0f55-11e5-b9aa-005056c00008
+2d4324e6-0f55-11e5-be9f-005056c00008
+2d4324e7-0f55-11e5-bb63-005056c00008
+2d4324e8-0f55-11e5-9953-005056c00008
+2d4324e9-0f55-11e5-b38a-005056c00008
+2d4324ea-0f55-11e5-b6c3-005056c00008
+2d4324eb-0f55-11e5-8263-005056c00008
+2d4324ec-0f55-11e5-9614-005056c00008
+2d4324ed-0f55-11e5-adac-005056c00008
+2d4324ee-0f55-11e5-b14c-005056c00008
+2d4324ef-0f55-11e5-9b03-005056c00008
+2d4324f0-0f55-11e5-b170-005056c00008
+2d4324f1-0f55-11e5-a4c5-005056c00008
+2d4324f2-0f55-11e5-8339-005056c00008
+2d4324f3-0f55-11e5-9e09-005056c00008
+2d4324f4-0f55-11e5-9f87-005056c00008
+2d4324f5-0f55-11e5-b5d5-005056c00008
+2d4324f6-0f55-11e5-bdda-005056c00008
+2d4324f7-0f55-11e5-a302-005056c00008
+2d4324f8-0f55-11e5-9cfc-005056c00008
+2d4324f9-0f55-11e5-bf30-005056c00008
+2d434bcf-0f55-11e5-b117-005056c00008
+2d434bd0-0f55-11e5-9677-005056c00008
+2d434bd1-0f55-11e5-9433-005056c00008
+2d434bd2-0f55-11e5-a0a9-005056c00008
+2d434bd3-0f55-11e5-80e1-005056c00008
+2d434bd4-0f55-11e5-a504-005056c00008
+2d434bd5-0f55-11e5-9d0e-005056c00008
+2d434bd6-0f55-11e5-afd2-005056c00008
+2d434bd7-0f55-11e5-a37b-005056c00008
+2d434bd8-0f55-11e5-8ac6-005056c00008
+2d434bd9-0f55-11e5-b15d-005056c00008
+2d434bda-0f55-11e5-9adf-005056c00008
+2d434bdb-0f55-11e5-a36b-005056c00008
+2d434bdc-0f55-11e5-adaa-005056c00008
+2d434bdd-0f55-11e5-b1f0-005056c00008
+2d434bde-0f55-11e5-b3e3-005056c00008
+2d434bdf-0f55-11e5-a63c-005056c00008
+2d434be0-0f55-11e5-a2bc-005056c00008
+2d434be1-0f55-11e5-9879-005056c00008
+2d434be2-0f55-11e5-a762-005056c00008
+2d434be3-0f55-11e5-960f-005056c00008
+2d434be4-0f55-11e5-a09d-005056c00008
+2d434be5-0f55-11e5-9ac9-005056c00008
+2d434be6-0f55-11e5-a32e-005056c00008
+2d434be7-0f55-11e5-be33-005056c00008
+2d434be8-0f55-11e5-9ce6-005056c00008
+2d434be9-0f55-11e5-89cc-005056c00008
+2d434bea-0f55-11e5-bfaf-005056c00008
+2d434beb-0f55-11e5-ba34-005056c00008
+2d434bec-0f55-11e5-9d7f-005056c00008
+2d434bed-0f55-11e5-ad4a-005056c00008
diff --git a/Silocean/0002/Test.py b/Silocean/0002/Test.py
new file mode 100644
index 00000000..d2ecb32d
--- /dev/null
+++ b/Silocean/0002/Test.py
@@ -0,0 +1,19 @@
+# -*-coding:utf-8-*-
+__author__ = 'Tracy'
+
+import MySQLdb
+
+conn = MySQLdb.connect('localhost', 'root', '123456', 'test', charset='utf8')
+cursor = conn.cursor()
+
+sql = 'create table if not exists mykeys (key_id char(36) not null)'
+cursor.execute(sql)
+
+with open('keys.txt', 'r') as f:
+ keys = f.readlines()
+ for key in keys:
+ cursor.execute("insert into mykeys values ('%s')" % str(key))
+
+cursor.close()
+conn.commit()
+conn.close()
\ No newline at end of file
diff --git a/Silocean/0002/keys.txt b/Silocean/0002/keys.txt
new file mode 100644
index 00000000..bc2a4a6c
--- /dev/null
+++ b/Silocean/0002/keys.txt
@@ -0,0 +1,200 @@
+2d41c530-0f55-11e5-8f5c-005056c00008
+2d42af8f-0f55-11e5-b4d8-005056c00008
+2d42af90-0f55-11e5-b7bb-005056c00008
+2d42af91-0f55-11e5-b9a1-005056c00008
+2d42af92-0f55-11e5-bf53-005056c00008
+2d42af93-0f55-11e5-bc30-005056c00008
+2d42af94-0f55-11e5-9f13-005056c00008
+2d42d69e-0f55-11e5-97ef-005056c00008
+2d42d69f-0f55-11e5-b24e-005056c00008
+2d42d6a0-0f55-11e5-9a7d-005056c00008
+2d42d6a1-0f55-11e5-8a21-005056c00008
+2d42d6a2-0f55-11e5-aa17-005056c00008
+2d42d6a3-0f55-11e5-8808-005056c00008
+2d42d6a4-0f55-11e5-b193-005056c00008
+2d42d6a5-0f55-11e5-b34f-005056c00008
+2d42d6a6-0f55-11e5-ae3a-005056c00008
+2d42d6a7-0f55-11e5-867a-005056c00008
+2d42d6a8-0f55-11e5-94f6-005056c00008
+2d42d6a9-0f55-11e5-8ccf-005056c00008
+2d42d6aa-0f55-11e5-9956-005056c00008
+2d42d6ab-0f55-11e5-b154-005056c00008
+2d42d6ac-0f55-11e5-be92-005056c00008
+2d42d6ad-0f55-11e5-ac5c-005056c00008
+2d42d6ae-0f55-11e5-a12a-005056c00008
+2d42d6af-0f55-11e5-88f8-005056c00008
+2d42d6b0-0f55-11e5-9a80-005056c00008
+2d42d6b1-0f55-11e5-ab69-005056c00008
+2d42d6b2-0f55-11e5-aa4e-005056c00008
+2d42d6b3-0f55-11e5-b419-005056c00008
+2d42d6b4-0f55-11e5-be0e-005056c00008
+2d42d6b5-0f55-11e5-8e0a-005056c00008
+2d42d6b6-0f55-11e5-8e7e-005056c00008
+2d42d6b7-0f55-11e5-9193-005056c00008
+2d42d6b8-0f55-11e5-a974-005056c00008
+2d42d6b9-0f55-11e5-84bb-005056c00008
+2d42d6ba-0f55-11e5-b16a-005056c00008
+2d42d6bb-0f55-11e5-a432-005056c00008
+2d42d6bc-0f55-11e5-b2cb-005056c00008
+2d42d6bd-0f55-11e5-b6a8-005056c00008
+2d42d6be-0f55-11e5-806a-005056c00008
+2d42d6bf-0f55-11e5-9979-005056c00008
+2d42d6c0-0f55-11e5-8f31-005056c00008
+2d42d6c1-0f55-11e5-9f4b-005056c00008
+2d42d6c2-0f55-11e5-afa9-005056c00008
+2d42d6c3-0f55-11e5-9718-005056c00008
+2d42d6c4-0f55-11e5-b206-005056c00008
+2d42d6c5-0f55-11e5-857c-005056c00008
+2d42d6c6-0f55-11e5-b451-005056c00008
+2d42d6c7-0f55-11e5-ae68-005056c00008
+2d42d6c8-0f55-11e5-8b37-005056c00008
+2d42d6c9-0f55-11e5-944b-005056c00008
+2d42d6ca-0f55-11e5-9348-005056c00008
+2d42d6cb-0f55-11e5-b068-005056c00008
+2d42d6cc-0f55-11e5-9457-005056c00008
+2d42d6cd-0f55-11e5-8d79-005056c00008
+2d42d6ce-0f55-11e5-9e25-005056c00008
+2d42d6cf-0f55-11e5-b0b3-005056c00008
+2d42d6d0-0f55-11e5-a097-005056c00008
+2d42d6d1-0f55-11e5-85d4-005056c00008
+2d42fdae-0f55-11e5-976f-005056c00008
+2d42fdaf-0f55-11e5-a37b-005056c00008
+2d42fdb0-0f55-11e5-905e-005056c00008
+2d42fdb1-0f55-11e5-83af-005056c00008
+2d42fdb2-0f55-11e5-b541-005056c00008
+2d42fdb3-0f55-11e5-b6e0-005056c00008
+2d42fdb4-0f55-11e5-b07b-005056c00008
+2d42fdb5-0f55-11e5-b458-005056c00008
+2d42fdb6-0f55-11e5-927d-005056c00008
+2d42fdb7-0f55-11e5-9bb9-005056c00008
+2d42fdb8-0f55-11e5-a37e-005056c00008
+2d42fdb9-0f55-11e5-9b60-005056c00008
+2d42fdba-0f55-11e5-8b8b-005056c00008
+2d42fdbb-0f55-11e5-bc71-005056c00008
+2d42fdbc-0f55-11e5-a6a3-005056c00008
+2d42fdbd-0f55-11e5-95eb-005056c00008
+2d42fdbe-0f55-11e5-b6c7-005056c00008
+2d42fdbf-0f55-11e5-8022-005056c00008
+2d42fdc0-0f55-11e5-91e1-005056c00008
+2d42fdc1-0f55-11e5-881e-005056c00008
+2d42fdc2-0f55-11e5-bbf8-005056c00008
+2d42fdc3-0f55-11e5-82cc-005056c00008
+2d42fdc4-0f55-11e5-b432-005056c00008
+2d42fdc5-0f55-11e5-9b5e-005056c00008
+2d42fdc6-0f55-11e5-9569-005056c00008
+2d42fdc7-0f55-11e5-93cb-005056c00008
+2d42fdc8-0f55-11e5-ac62-005056c00008
+2d42fdc9-0f55-11e5-8546-005056c00008
+2d42fdca-0f55-11e5-94a2-005056c00008
+2d42fdcb-0f55-11e5-aaa3-005056c00008
+2d42fdcc-0f55-11e5-8662-005056c00008
+2d42fdcd-0f55-11e5-8754-005056c00008
+2d42fdce-0f55-11e5-921d-005056c00008
+2d42fdcf-0f55-11e5-87f1-005056c00008
+2d42fdd0-0f55-11e5-8f64-005056c00008
+2d42fdd1-0f55-11e5-865c-005056c00008
+2d42fdd2-0f55-11e5-82fe-005056c00008
+2d42fdd3-0f55-11e5-a5c7-005056c00008
+2d42fdd4-0f55-11e5-8040-005056c00008
+2d42fdd5-0f55-11e5-b875-005056c00008
+2d42fdd6-0f55-11e5-9c3e-005056c00008
+2d42fdd7-0f55-11e5-8f2d-005056c00008
+2d42fdd8-0f55-11e5-8a4a-005056c00008
+2d42fdd9-0f55-11e5-b183-005056c00008
+2d42fdda-0f55-11e5-b57f-005056c00008
+2d42fddb-0f55-11e5-8df2-005056c00008
+2d42fddc-0f55-11e5-b25f-005056c00008
+2d42fddd-0f55-11e5-b1a7-005056c00008
+2d42fdde-0f55-11e5-8a7e-005056c00008
+2d42fddf-0f55-11e5-8e69-005056c00008
+2d42fde0-0f55-11e5-b08c-005056c00008
+2d42fde1-0f55-11e5-8b4d-005056c00008
+2d4324c0-0f55-11e5-8a3d-005056c00008
+2d4324c1-0f55-11e5-8e21-005056c00008
+2d4324c2-0f55-11e5-a739-005056c00008
+2d4324c3-0f55-11e5-be1c-005056c00008
+2d4324c4-0f55-11e5-b3cb-005056c00008
+2d4324c5-0f55-11e5-8f7f-005056c00008
+2d4324c6-0f55-11e5-8e36-005056c00008
+2d4324c7-0f55-11e5-b89a-005056c00008
+2d4324c8-0f55-11e5-ba2f-005056c00008
+2d4324c9-0f55-11e5-bde1-005056c00008
+2d4324ca-0f55-11e5-b995-005056c00008
+2d4324cb-0f55-11e5-9dff-005056c00008
+2d4324cc-0f55-11e5-ae22-005056c00008
+2d4324cd-0f55-11e5-b3a8-005056c00008
+2d4324ce-0f55-11e5-9d75-005056c00008
+2d4324cf-0f55-11e5-a491-005056c00008
+2d4324d0-0f55-11e5-a95b-005056c00008
+2d4324d1-0f55-11e5-87cc-005056c00008
+2d4324d2-0f55-11e5-9002-005056c00008
+2d4324d3-0f55-11e5-a70a-005056c00008
+2d4324d4-0f55-11e5-82d0-005056c00008
+2d4324d5-0f55-11e5-99f9-005056c00008
+2d4324d6-0f55-11e5-bb48-005056c00008
+2d4324d7-0f55-11e5-86bf-005056c00008
+2d4324d8-0f55-11e5-abe3-005056c00008
+2d4324d9-0f55-11e5-8ca4-005056c00008
+2d4324da-0f55-11e5-9ab8-005056c00008
+2d4324db-0f55-11e5-bbc0-005056c00008
+2d4324dc-0f55-11e5-829f-005056c00008
+2d4324dd-0f55-11e5-b85f-005056c00008
+2d4324de-0f55-11e5-9924-005056c00008
+2d4324df-0f55-11e5-be66-005056c00008
+2d4324e0-0f55-11e5-a782-005056c00008
+2d4324e1-0f55-11e5-a1bb-005056c00008
+2d4324e2-0f55-11e5-9a39-005056c00008
+2d4324e3-0f55-11e5-afa4-005056c00008
+2d4324e4-0f55-11e5-b056-005056c00008
+2d4324e5-0f55-11e5-b9aa-005056c00008
+2d4324e6-0f55-11e5-be9f-005056c00008
+2d4324e7-0f55-11e5-bb63-005056c00008
+2d4324e8-0f55-11e5-9953-005056c00008
+2d4324e9-0f55-11e5-b38a-005056c00008
+2d4324ea-0f55-11e5-b6c3-005056c00008
+2d4324eb-0f55-11e5-8263-005056c00008
+2d4324ec-0f55-11e5-9614-005056c00008
+2d4324ed-0f55-11e5-adac-005056c00008
+2d4324ee-0f55-11e5-b14c-005056c00008
+2d4324ef-0f55-11e5-9b03-005056c00008
+2d4324f0-0f55-11e5-b170-005056c00008
+2d4324f1-0f55-11e5-a4c5-005056c00008
+2d4324f2-0f55-11e5-8339-005056c00008
+2d4324f3-0f55-11e5-9e09-005056c00008
+2d4324f4-0f55-11e5-9f87-005056c00008
+2d4324f5-0f55-11e5-b5d5-005056c00008
+2d4324f6-0f55-11e5-bdda-005056c00008
+2d4324f7-0f55-11e5-a302-005056c00008
+2d4324f8-0f55-11e5-9cfc-005056c00008
+2d4324f9-0f55-11e5-bf30-005056c00008
+2d434bcf-0f55-11e5-b117-005056c00008
+2d434bd0-0f55-11e5-9677-005056c00008
+2d434bd1-0f55-11e5-9433-005056c00008
+2d434bd2-0f55-11e5-a0a9-005056c00008
+2d434bd3-0f55-11e5-80e1-005056c00008
+2d434bd4-0f55-11e5-a504-005056c00008
+2d434bd5-0f55-11e5-9d0e-005056c00008
+2d434bd6-0f55-11e5-afd2-005056c00008
+2d434bd7-0f55-11e5-a37b-005056c00008
+2d434bd8-0f55-11e5-8ac6-005056c00008
+2d434bd9-0f55-11e5-b15d-005056c00008
+2d434bda-0f55-11e5-9adf-005056c00008
+2d434bdb-0f55-11e5-a36b-005056c00008
+2d434bdc-0f55-11e5-adaa-005056c00008
+2d434bdd-0f55-11e5-b1f0-005056c00008
+2d434bde-0f55-11e5-b3e3-005056c00008
+2d434bdf-0f55-11e5-a63c-005056c00008
+2d434be0-0f55-11e5-a2bc-005056c00008
+2d434be1-0f55-11e5-9879-005056c00008
+2d434be2-0f55-11e5-a762-005056c00008
+2d434be3-0f55-11e5-960f-005056c00008
+2d434be4-0f55-11e5-a09d-005056c00008
+2d434be5-0f55-11e5-9ac9-005056c00008
+2d434be6-0f55-11e5-a32e-005056c00008
+2d434be7-0f55-11e5-be33-005056c00008
+2d434be8-0f55-11e5-9ce6-005056c00008
+2d434be9-0f55-11e5-89cc-005056c00008
+2d434bea-0f55-11e5-bfaf-005056c00008
+2d434beb-0f55-11e5-ba34-005056c00008
+2d434bec-0f55-11e5-9d7f-005056c00008
+2d434bed-0f55-11e5-ad4a-005056c00008
diff --git a/Silocean/0003/Test.py b/Silocean/0003/Test.py
new file mode 100644
index 00000000..542a2a74
--- /dev/null
+++ b/Silocean/0003/Test.py
@@ -0,0 +1,10 @@
+# -*-coding:utf-8-*-
+__author__ = 'Tracy'
+import redis, uuid
+
+r = redis.StrictRedis(host='localhost', port=6379)
+for i in range(200):
+ r.set('key_id'+str(i), uuid.uuid1())
+
+for i in range(200):
+ print(r.get("key_id"+str(i)))
\ No newline at end of file
diff --git a/Silocean/0004/Test.py b/Silocean/0004/Test.py
new file mode 100644
index 00000000..4955b1b9
--- /dev/null
+++ b/Silocean/0004/Test.py
@@ -0,0 +1,12 @@
+__author__ = 'Tracy'
+
+import io, re
+
+count = 0
+
+with io.open('text.txt', 'r') as file:
+ for line in file.readlines():
+ list = re.findall("[a-zA-Z]+'*-*[a-zA-Z]*", line)
+ count += len(list)
+print(count)
+
diff --git a/Silocean/0004/text.txt b/Silocean/0004/text.txt
new file mode 100644
index 00000000..2379c58b
--- /dev/null
+++ b/Silocean/0004/text.txt
@@ -0,0 +1 @@
+The Dursleys had everything they wanted, but they also had a secret, and their greatest fear was that somebody would discover it. They didn't think they could bear it if anyone found out about the Potters. Mrs. Potter was Mrs. Dursley's sister, but they hadn't met for several years; in fact, Mrs. Dursley pretended she didn't have a sister, because her sister and her good-for-nothing husband were as unDursleyish as it was possible to be. The Dursleys shuddered to think what the neighbors would say if the Potters arrived in the street. The Dursleys knew that the Potters had a small son, too, but they had never even seen him. This boy was another good reason for keeping the Potters away; they didn't want Dudley mixing with a child like that.
\ No newline at end of file
diff --git a/Silocean/0005/Test.py b/Silocean/0005/Test.py
new file mode 100644
index 00000000..a311f859
--- /dev/null
+++ b/Silocean/0005/Test.py
@@ -0,0 +1,19 @@
+# -*-coding:utf-8-*-
+__author__ = 'Tracy'
+import os
+import Image
+
+path = 'images'
+
+for f in os.listdir(path):
+ img = Image.open(os.path.join(path, f))
+ width = img.size[0]
+ height = img.size[1]
+ out = img
+ if width > 1136:
+ width = 1136
+ out = img.resize((width, height), Image.ANTIALIAS)
+ if height > 640:
+ height = 640
+ out = img.resize((width, height), Image.ANTIALIAS)
+ out.save('images/result/'+f)
diff --git a/Silocean/0006/Test.py b/Silocean/0006/Test.py
new file mode 100644
index 00000000..ae2b3f59
--- /dev/null
+++ b/Silocean/0006/Test.py
@@ -0,0 +1,27 @@
+# -*-coding:utf-8-*-
+__author__ = 'Tracy'
+import os,re
+
+path = 'diaries'
+files = os.listdir(path)
+
+def get_key_word(words):
+ dic = {}
+ max = 0
+ marked_key = ''
+ for word in words:
+ if dic.has_key(word) is False:
+ dic[word] = 1
+ else:
+ dic[word] = dic[word] + 1
+ for key, value in dic.items():
+ if dic[key] > max:
+ max = dic[key]
+ marked_key = key
+ print(marked_key, max)
+
+
+for f in files:
+ with open(os.path.join(path, f)) as diary:
+ words = re.findall("[a-zA-Z]+'*-*[a-zA-Z]*",diary.read())
+ get_key_word(words)
\ No newline at end of file
diff --git a/Silocean/0006/diaries/day01.txt b/Silocean/0006/diaries/day01.txt
new file mode 100644
index 00000000..be5fddd0
--- /dev/null
+++ b/Silocean/0006/diaries/day01.txt
@@ -0,0 +1,4 @@
+Python learning
+
+This is a diary about Python.
+Python is an interesting language, which is very easy to learn and we can use it to do many things.
\ No newline at end of file
diff --git a/Silocean/0006/diaries/day02.txt b/Silocean/0006/diaries/day02.txt
new file mode 100644
index 00000000..c2d743f7
--- /dev/null
+++ b/Silocean/0006/diaries/day02.txt
@@ -0,0 +1,2 @@
+Hello Java!!!
+I love Java......
\ No newline at end of file
diff --git a/Silocean/0006/diaries/day03.txt b/Silocean/0006/diaries/day03.txt
new file mode 100644
index 00000000..202d770c
--- /dev/null
+++ b/Silocean/0006/diaries/day03.txt
@@ -0,0 +1,9 @@
+The Dursleys had everything they wanted, but they also had a secret,
+and their greatest fear was that somebody would discover it.
+ They didn't think they could bear it if anyone found out about the Potters.
+ Mrs. Potter was Mrs. Dursley's sister, but they hadn't met for several years;
+ in fact, Mrs. Dursley pretended she didn't have a sister, because her sister and her good-for-nothing
+ husband were as unDursleyish as it was possible to be.
+ The Dursleys shuddered to think what the neighbors would say if the Potters arrived in the street.
+ The Dursleys knew that the Potters had a small son, too, but they had never even seen him.
+ This boy was another good reason for keeping the Potters away; they didn't want Dudley mixing with a child like that
\ No newline at end of file
diff --git a/Silocean/0007/Test.py b/Silocean/0007/Test.py
new file mode 100644
index 00000000..7c09b4db
--- /dev/null
+++ b/Silocean/0007/Test.py
@@ -0,0 +1,39 @@
+__author__ = 'Tracy'
+
+import os, io, re
+
+commentLines = 0
+whiteLines = 0
+comment = False
+
+path = 'F:\AllKindsOfWorkplace\PyCharmWorkplace\PythonLearning'
+
+count = 0
+def tree(path):
+ filelist = os.listdir(path)
+ for file in filelist:
+ if os.path.isdir(os.path.join(path, file)):
+ tree(os.path.join(path, file))
+ else:
+ filename = os.path.basename(os.path.join(path, file))
+ if filename.endswith(".py"):
+ # print(filename)
+ file = io.open(os.path.join(path, file))
+ parse(file)
+ file.close()
+
+def parse(file):
+ global commentLines
+ global whiteLines
+ global comment
+ for line in file.readlines():
+ # line = line.strip("\n")
+ if line.startswith("#"):
+ commentLines += 1
+ elif re.match("^[\\s&&[^\\n]]*$", line):
+ whiteLines += 1
+
+tree(path)
+
+print(commentLines)
+print(whiteLines)
diff --git a/Silocean/0008/Test.html b/Silocean/0008/Test.html
new file mode 100644
index 00000000..17e2b30a
--- /dev/null
+++ b/Silocean/0008/Test.html
@@ -0,0 +1,17 @@
+
+
+
+
+This is the Title
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/fybhp/practice3/practice3.py b/fybhp/practice3/practice3.py
new file mode 100644
index 00000000..274b2ad7
--- /dev/null
+++ b/fybhp/practice3/practice3.py
@@ -0,0 +1,28 @@
+# -*- coding:utf-8 -*-
+import redis
+import string
+import random
+
+map = {}
+db = redis.Redis(host = 'localhost',port = 6379,db = 0)
+p = db.pipeline()
+
+def id_generator(size=4, chars=string.ascii_uppercase + string.digits + string.ascii_lowercase):
+ set = []
+ for i in range(4):
+ a = ''.join(random.choice(chars) for _ in range(size))
+ set.append(a)
+ return set
+
+for i in range(200):
+ id = '-'.join(id_generator())
+ while id in map.values():
+ id = '-'.join(id_generator())
+ map[i] = id
+ p.set(i,map[i])
+
+p.execute()
+p.save()
+#for i in range(200):
+ #print str(i) + str(db.get(i))
+print db.keys()
\ No newline at end of file
diff --git a/fybhp/practice4/English.txt b/fybhp/practice4/English.txt
new file mode 100644
index 00000000..5a9e1e92
--- /dev/null
+++ b/fybhp/practice4/English.txt
@@ -0,0 +1,15 @@
+You are watching a film in which two men are having a fight. They hit one another hard. At the start they only fight with their fists. But soon they begin hitting one another over the heads with chairs. And so it goes on until one of the men crashes through a window and falls thirty feet to the ground below. He is deadOf course he isn't really dead. With any luck he isn't even hurt. Why? Because the men who fall out of high windows or jump from fast moving trains, who crash cars of even catch fire, are professionals. They do this for a living. These men are called stuntmen. That is to say, they perform tricks.There are two sides to their work. They actually do most of the things you see on the screen. For example, they fall from a high building. However, they do not fall on to hard ground but on to empty cardboard boxes covered with a mattress . Again, when they hit one another with chairs, the chairs are made of soft wood and when they crash through windows, the glass is made of sugar!But although their work depends on trick of this sort, it also requires a high degree of skill and training. Often a stuntman' s success depends on careful timing. For example, when he is "blown up" in a battle scene, he has to jump out of the way of the explosion just at the right moment.
+
+Naturally stuntmen are well paid for their work, but they lead dangerous lives. They often get seriously injured, and sometimes killed. A Norwegian stuntman, for example, skied over the edge of a cliff a thousand feet high. His parachute failed to open, and he was killed. In spite of all the risks, this is no longer a profession for men only. Men no longer dress up as women when actresses have to perform some dangerous action. For nowadays there are stuntgirls tool.
+In some ways, the United States has made some progress. Fires no longer destroy 18,000 buildings as they did in the Great Chicago Fire of 1871, or kill half a town of 2,400 people, as they did the same night in Peshtigo, Wisconsin. Other than the Beverly Hill Supper Club fire in Kentucky in 1977, it has been four decades since more than 100 Americans died in a fire.
+
+But even with such successes, the United States still has one of the worst fire death rates in the world. Safety experts say the problem is neither money nor technology, but the indifference of a country that just will not take fires seriously enough.
+
+American fire departments are some of the world's fastest and best-equipped. They have to be. The United States has twice Japan's population, and 40 times as many fires. It spends far less on preventing fires than on fighting them. And American fire -safety lessons are aimed almost entirely at children, who die in large numbers in fires but who, against popular beliefs, start very few of them.
+
+Experts say the error is an opinion that fires are not really anyone's fault. That is not so in other countries, where both public education and the law treat fires as either a personal failing or a crime. Japan has many wood houses; of the 48 fires in world history that burned more than 10,000 buildings, Japan has had 27. Punishment for causing a big fire can be as severe as life imprisonment.
+
+In the United States, most education dollars are spent in elementary schools. But, the lessons are aimed at too limited a number of people; just 9 percent of all fire deaths are caused by children playing with matches.
+
+The United States continues to depend more on technology than laws or social pressure. There are smoke detectors in 85 percent of all homes. Some local building laws now require home sprinklers . New heaters and irons shut themselves off if they are tipped.
+Today is the date of that afternoon in April a year ago when I first saw the strange and attractive doll in the window of Abe Sheftel's toy shop on Third Avenue near Fifteenth Street, just around the corner from my office, where the plate on the door reads. Dr Samuel Amory. I remember just how it was that day: the first sign of spring floated across the East River, mixing with the soft - coal smoke from the factories and the street smells of the poor neighbourhood. As I turned the corner on my way to work and came to Sheftel's, I was made once more known of the poor collection of toys in the dusty window, and I remembered the coming birthday of a small niece of mine in Cleveland, to whom I was in the habit of sending small gifts. Therefore, I stopped and examined the window to see if there might be anything suitable, and looked at the collection of unattractive objects--a red toy fire engine, some lead soldiers, cheap baseballs, bottles of ink, pens, yellowed envelopes, and advertisements for soft - drinks. And thus it was that my eyes finally came to rest upon the doll stored away in one corner, a doll with the strangest, most charming expression on her face. I could not wholly make her out, due to the shadows and the film of dust through which I was looking, but I was sure that a deep impression had been made upon me as though I had run into a person, as one does sometimes with a stranger, with whose personality one is deeply impressed.
\ No newline at end of file
diff --git a/fybhp/practice4/practice4(2).py b/fybhp/practice4/practice4(2).py
new file mode 100644
index 00000000..6e7b833a
--- /dev/null
+++ b/fybhp/practice4/practice4(2).py
@@ -0,0 +1,33 @@
+# -*- coding:utf-8 -*-
+
+file = open('./English.txt','r')
+s = set()
+map = {}
+allLines = file.readlines()
+
+def pre(i):
+ if not i in s:
+ map[i] = 1
+ s.add(i)
+ else:
+ map[i] += 1
+
+for eachLine in allLines:
+ alist = eachLine.split()
+ if alist != []:
+ for i in alist:
+ i = i.lower()
+ if i[-1] == '.' or i[-1] == ',' or i[-1] == "'" or i[-1] == '?' :
+ i = i[:-1]
+ if i == '':
+ continue
+ if '.' in i:
+ a = i.split('.')
+ for j in a:
+ pre(j)
+ continue
+ pre(i)
+ else:
+ pass
+print s
+print map
\ No newline at end of file
diff --git a/fybhp/practice4/practice4.py b/fybhp/practice4/practice4.py
new file mode 100644
index 00000000..3daf5e9c
--- /dev/null
+++ b/fybhp/practice4/practice4.py
@@ -0,0 +1,28 @@
+# -*- coding:utf-8 -*-
+import redis
+
+db = redis.Redis(host = 'localhost',port = 6379,db = 0)
+file = open('./English.txt','r')
+s = set()
+map = {}
+allLines = file.readlines()
+for eachLine in allLines:
+ alist = eachLine.split()
+ if alist != []:
+ for i in alist:
+ if i[-1] == '.':
+ i = i[:-1]
+ if i == '':
+ continue
+ i = i.lower()
+ if not i in s:
+ db.set(i,1)
+ s.add(i)
+ else:
+ db.incr(i)
+ else:
+ pass
+print s
+for i in s:
+ map[i] = db.get(i)
+print map
\ No newline at end of file
diff --git a/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG b/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG
new file mode 100644
index 00000000..8c9ec81a
Binary files /dev/null and b/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG differ
diff --git a/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG b/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG
new file mode 100644
index 00000000..ce1f1c91
Binary files /dev/null and b/fybhp/practice5/iphone5/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG differ
diff --git a/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG
new file mode 100644
index 00000000..3cf4f8c5
Binary files /dev/null and b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG differ
diff --git a/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG
new file mode 100644
index 00000000..2c916263
Binary files /dev/null and b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG differ
diff --git a/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG
new file mode 100644
index 00000000..4c8ac243
Binary files /dev/null and b/fybhp/practice5/iphone5/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG differ
diff --git a/fybhp/practice5/pic/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG b/fybhp/practice5/pic/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG
new file mode 100644
index 00000000..7e517672
Binary files /dev/null and b/fybhp/practice5/pic/[FLsnow][Fate_stay_night][02][BDrip][1080p][AVC_FLAC]_2015731214139.JPG differ
diff --git a/fybhp/practice5/pic/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG b/fybhp/practice5/pic/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG
new file mode 100644
index 00000000..83509845
Binary files /dev/null and b/fybhp/practice5/pic/[FLsnow][Fate_stay_night][07][BDrip][1080p][AVC_FLAC]_20158411234.JPG differ
diff --git a/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG
new file mode 100644
index 00000000..d6aaa475
Binary files /dev/null and b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215121.JPG differ
diff --git a/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG
new file mode 100644
index 00000000..ea2ebd33
Binary files /dev/null and b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215128.JPG differ
diff --git a/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG
new file mode 100644
index 00000000..cd628dfd
Binary files /dev/null and b/fybhp/practice5/pic/[LAC][Gintama][Gekijouban_Gintama_Kanketsuhen_Yorozuya_yo_Eien_Nare][x264_aac][GB][720P]_201559215521.JPG differ
diff --git a/fybhp/practice5/practice5.py b/fybhp/practice5/practice5.py
new file mode 100644
index 00000000..b498d599
--- /dev/null
+++ b/fybhp/practice5/practice5.py
@@ -0,0 +1,39 @@
+# -*- coding:utf-8 -*-
+from __future__ import division
+from PIL import Image
+import os
+
+#按比例缩放
+picdir = r'./pic'
+file_list = os.walk(picdir)
+thumbdir = r'./iphone5/'
+ip5lo = 1136
+ip5sh = 640
+if not os.path.exists(thumbdir):
+ os.mkdir(thumbdir)
+for root, dirs, files in file_list:
+ #print file
+ for file in files:
+ filedir = os.path.join(picdir,file)
+ img = Image.open(filedir)
+ imgSize = img.size
+ lo = max(imgSize)
+ sh = min(imgSize)
+ rate = lo/sh
+ newfiledir = os.path.join(thumbdir,file)
+ if sh > ip5sh or lo > ip5lo :
+ #此处亦有两种方法 sh2 = ip5lo/rate,再进行四种分类。
+ #可将两方法相比,计算收缩比率,收缩比率小的获胜,有必要时再如此处理吧。
+ lo2 = ip5sh*rate
+ print lo2
+ if lo2 > ip5lo and imgSize[0] > imgSize[1]:
+ new_img = img.resize((ip5lo,int(ip5lo/rate)),Image.ANTIALIAS)
+ elif lo2 > ip5lo and imgSize[0] < imgSize[1]:
+ new_img = img.resize((int(ip5lo/rate),ip5lo),Image.ANTIALIAS)
+ elif lo2 < ip5lo and imgSize[0] > imgSize[1]:
+ new_img = img.resize((int(lo2),ip5sh),Image.ANTIALIAS)
+ else:
+ new_img = img.resize((ip5sh,int(lo2)),Image.ANTIALIAS)
+ new_img.save(newfiledir,quality = 100)
+ else:
+ img.save(newfiledir,quality = 100)
diff --git a/fybhp/practice6/diary/diary1.txt b/fybhp/practice6/diary/diary1.txt
new file mode 100644
index 00000000..41fc2673
--- /dev/null
+++ b/fybhp/practice6/diary/diary1.txt
@@ -0,0 +1,9 @@
+You are watching a film in which two men are having a fight. They hit one another hard. At the start they only fight with their fists. But soon they begin hitting one another over the heads with chairs. And so it goes on until one of the men crashes through a window and falls thirty feet to the ground below. He is deadOf course he isn't really dead. With any luck he isn't even hurt. Why? Because the men who fall out of high windows or jump from fast moving trains, who crash cars of even catch fire, are professionals. They do this for a living. These men are called stuntmen. That is to say, they perform tricks.There are two sides to their work. They actually do most of the things you see on the screen. For example, they fall from a high building. However, they do not fall on to hard ground but on to empty cardboard boxes covered with a mattress . Again, when they hit one another with chairs, the chairs are made of soft wood and when they crash through windows, the glass is made of sugar!But although their work depends on trick of this sort, it also requires a high degree of skill and training. Often a stuntman' s success depends on careful timing. For example, when he is "blown up" in a battle scene, he has to jump out of the way of the explosion just at the right moment.
+
+Naturally stuntmen are well paid for their work, but they lead dangerous lives. They often get seriously injured, and sometimes killed. A Norwegian stuntman, for example, skied over the edge of a cliff a thousand feet high. His parachute failed to open, and he was killed. In spite of all the risks, this is no longer a profession for men only. Men no longer dress up as women when actresses have to perform some dangerous action. For nowadays there are stuntgirls tool.
+In some ways, the United States has made some progress. Fires no longer destroy 18,000 buildings as they did in the Great Chicago Fire of 1871, or kill half a town of 2,400 people, as they did the same night in Peshtigo, Wisconsin. Other than the Beverly Hill Supper Club fire in Kentucky in 1977, it has been four decades since more than 100 Americans died in a fire.
+
+But even with such successes, the United States still has one of the worst fire death rates in the world. Safety experts say the problem is neither money nor technology, but the indifference of a country that just will not take fires seriously enough.
+
+American fire departments are some of the world's fastest and best-equipped. They have to be. The United States has twice Japan's population, and 40 times as many fires. It spends far less on preventing fires than on fighting them. And American fire -safety lessons are aimed almost entirely at children, who die in large numbers in fires but who, against popular beliefs, start very few of them.
+
diff --git a/fybhp/practice6/diary/diary2.txt b/fybhp/practice6/diary/diary2.txt
new file mode 100644
index 00000000..3d00bd58
--- /dev/null
+++ b/fybhp/practice6/diary/diary2.txt
@@ -0,0 +1,6 @@
+Experts say the error is an opinion that fires are not really anyone's fault. That is not so in other countries, where both public education and the law treat fires as either a personal failing or a crime. Japan has many wood houses; of the 48 fires in world history that burned more than 10,000 buildings, Japan has had 27. Punishment for causing a big fire can be as severe as life imprisonment.
+
+In the United States, most education dollars are spent in elementary schools. But, the lessons are aimed at too limited a number of people; just 9 percent of all fire deaths are caused by children playing with matches.
+
+The United States continues to depend more on technology than laws or social pressure. There are smoke detectors in 85 percent of all homes. Some local building laws now require home sprinklers . New heaters and irons shut themselves off if they are tipped.
+Today is the date of that afternoon in April a year ago when I first saw the strange and attractive doll in the window of Abe Sheftel's toy shop on Third Avenue near Fifteenth Street, just around the corner from my office, where the plate on the door reads. Dr Samuel Amory. I remember just how it was that day: the first sign of spring floated across the East River, mixing with the soft - coal smoke from the factories and the street smells of the poor neighbourhood. As I turned the corner on my way to work and came to Sheftel's, I was made once more known of the poor collection of toys in the dusty window, and I remembered the coming birthday of a small niece of mine in Cleveland, to whom I was in the habit of sending small gifts. Therefore, I stopped and examined the window to see if there might be anything suitable, and looked at the collection of unattractive objects--a red toy fire engine, some lead soldiers, cheap baseballs, bottles of ink, pens, yellowed envelopes, and advertisements for soft - drinks. And thus it was that my eyes finally came to rest upon the doll stored away in one corner, a doll with the strangest, most charming expression on her face. I could not wholly make her out, due to the shadows and the film of dust through which I was looking, but I was sure that a deep impression had been made upon me as though I had run into a person, as one does sometimes with a stranger, with whose personality one is deeply impressed.
\ No newline at end of file
diff --git a/fybhp/practice6/diary/diary3.txt b/fybhp/practice6/diary/diary3.txt
new file mode 100644
index 00000000..39ca7e6f
--- /dev/null
+++ b/fybhp/practice6/diary/diary3.txt
@@ -0,0 +1 @@
+the and to to to. to'
\ No newline at end of file
diff --git a/fybhp/practice6/practice6.py b/fybhp/practice6/practice6.py
new file mode 100644
index 00000000..d66f4fad
--- /dev/null
+++ b/fybhp/practice6/practice6.py
@@ -0,0 +1,51 @@
+# -*- coding:utf-8 -*-
+import os
+
+'''practice5中遍历目录中文件的方法,读取所有文件,
+practice4中对单词计数的方法,对所有词进行计数,
+完成对map字典的排序即可。'''
+diarydir = r'./diary/'
+file_list = os.walk(diarydir)
+s = set()
+map = {}
+
+def pre(i,s):
+ if not i in s:
+ map[i] = 1
+ s.add(i)
+ else:
+ map[i] += 1
+
+def parselines(allLines):
+ for eachLine in allLines:
+ #将set置于此处,控制其作用域。
+ s = set()
+ alist = eachLine.split()
+ if alist != []:
+ for i in alist:
+ i = i.lower()
+ if i[-1] == '.' or i[-1] == ',' or i[-1] == "'" or i[-1] == '?' :
+ i = i[:-1]
+ if i == '':
+ continue
+ if '.' in i:
+ a = i.split('.')
+ for j in a:
+ pre(j,s)
+ continue
+ pre(i,s)
+ else:
+ pass
+
+for root, dirs, files in file_list:
+ for file in files:
+ map = {}
+ filedir = os.path.join(diarydir,file)
+ diary = open(filedir,'r')
+ allLines = diary.readlines()
+ parselines(allLines)
+ #黑科技。
+ dict= sorted(map.iteritems(), key=lambda d:d[1], reverse = True)
+ print str(file)+'\n'
+ print dict
+ del map
\ No newline at end of file
diff --git a/fybhp/practice7/practice7.py b/fybhp/practice7/practice7.py
new file mode 100644
index 00000000..5252536d
--- /dev/null
+++ b/fybhp/practice7/practice7.py
@@ -0,0 +1,32 @@
+# -*- coding:utf-8 -*-
+import os
+
+#用字典结构表示,更为清晰。
+map = {}
+map['blank'] = 0
+map['annotation'] = 0
+map['all'] = 0
+dir = r'E://somegit/pracpro/'
+file_list = os.walk(dir)
+
+def parsefile(filedir):
+ #可以此控制计算的文件类型,如加上'.sql'等,都很容易。
+ if filedir[-3:] == '.py':
+ h = open(filedir,'r')
+ allLines = h.readlines()
+ for line in allLines:
+ line = line.strip()
+ if line == '':
+ map['blank'] += 1
+ elif line[0] == '#':
+ map['annotation'] += 1
+ map['all'] += len(allLines)
+
+#这几行很重要。
+for root, dirs, files in file_list:
+ for name in files:
+ #特别是这一行。
+ filedir = root+'/'+name
+ parsefile(filedir)
+
+print map
\ No newline at end of file
diff --git a/fybhp/practice8/AGitPro.html b/fybhp/practice8/AGitPro.html
new file mode 100644
index 00000000..119983d8
--- /dev/null
+++ b/fybhp/practice8/AGitPro.html
@@ -0,0 +1,878 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ GitHub - Yixiaohan/show-me-the-code: Python 练习册,每天一个小程序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Skip to content
+
+
+
+
第 0024 题: 使用 Python 的 Web 框架,做一个 Web 版本 TodoList 应用。
+
+
+
+
+
+
第 0025 题: 使用 Python 实现:对着电脑吼一声,自动打开浏览器中的默认网站。
+
+
例如,对着笔记本电脑吼一声“百度”,浏览器自动打开百度首页。
+
+关键字:Speech to Text
+
+
+
参考思路:
+1:获取电脑录音-->WAV文件
+ python record wav
+
+
2:录音文件-->文本
+
+
STT: Speech to Text
+
+STT API Google API
+
+
+
3:文本-->电脑命令
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Something went wrong with that request. Please try again.
+
+
+
+
+
+ You signed in with another tab or window. Reload to refresh your session.
+ You signed out in another tab or window. Reload to refresh your session.
+
第 0024 题: 使用 Python 的 Web 框架,做一个 Web 版本 TodoList 应用。
+
+
+
+
+
+
第 0025 题: 使用 Python 实现:对着电脑吼一声,自动打开浏览器中的默认网站。
+
+
例如,对着笔记本电脑吼一声“百度”,浏览器自动打开百度首页。
+
+关键字:Speech to Text
+
+
+
参考思路:
+1:获取电脑录音-->WAV文件
+ python record wav
+
+
2:录音文件-->文本
+
+
STT: Speech to Text
+
+STT API Google API
+
+
+
3:文本-->电脑命令
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Something went wrong with that request. Please try again.
+
+
+
+
+
+ You signed in with another tab or window. Reload to refresh your session.
+ You signed out in another tab or window. Reload to refresh your session.
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fybhp/practice9/practice9.py b/fybhp/practice9/practice9.py
new file mode 100644
index 00000000..c5adc3d4
--- /dev/null
+++ b/fybhp/practice9/practice9.py
@@ -0,0 +1,6 @@
+# -*- coding:utf-8 -*-
+from bs4 import BeautifulSoup
+
+soup = BeautifulSoup(open('AGitPro.html'),'lxml')
+for link in soup.find_all('a'):
+ print link['href']
\ No newline at end of file
diff --git a/greatbuger/0000/0000.py b/greatbuger/0000/0000.py
new file mode 100644
index 00000000..3161135b
--- /dev/null
+++ b/greatbuger/0000/0000.py
@@ -0,0 +1,92 @@
+'''from PIL import Image,ImageFont,ImageDraw
+
+class UnreadTag:
+ def __init__(self):
+ self.img = None
+ self.num = None
+
+ def open(self,image_path):
+ self.img = Image.open(image_path)
+ return True
+
+ def draw(self,tag_num = 1):
+ tag_size = max(self.img.size[0],self.img.size[1]) / 5
+ tag_str = str(tag_num) if tag_num < 100 else '99+'
+ font = ImageFont.truetype("simsun.ttc",tag_size)
+ px = self.img.size[0]-font.getsize(tag_str)[0]
+ draw_pen = ImageDraw.Draw(self.img)
+ draw_pen.text((px,0), tag_str, (255,0,0), font)
+ self.img.save('D:/python workSpace/showmethecode/0000/face' + tag_str + '.jpg')
+ return True
+
+
+solver = UnreadTag()
+solver.open('D:/python workSpace/showmethecode/0000/face.jpg')
+solver.draw(25)
+'''
+
+
+from PIL import Image,ImageDraw,ImageFont
+
+class UnreadInformation:
+ def __init__(self):
+ self.image = None
+ self.unread = None
+
+ def open(self,image_path):
+ self.image = Image.open(image_path)
+ return True
+
+ def draw(self,unread = 1):
+ unread_str = str(unread) if unread < 100 else '99+'
+ unread_size = max(self.image.size[0],self.image.size[1]) / 4
+ font = ImageFont.truetype("simsun.ttc",unread_size)
+ location_x = (self.image.size[0] - font.getsize(unread_str)[0])
+
+ draw = ImageDraw.Draw(self.image)
+ draw.text((location_x,0),unread_str,(255,0,0),font)
+
+ self.image.save('D:/python workSpace/showmethecode/0000/face' + unread_str + '.jpg')
+ return True
+
+test = UnreadInformation()
+test.open('D:/python workSpace/showmethecode/0000/face.jpg')
+test.draw(25)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/greatbuger/0000/simsun.ttc b/greatbuger/0000/simsun.ttc
new file mode 100644
index 00000000..e64e92ed
Binary files /dev/null and b/greatbuger/0000/simsun.ttc differ
diff --git a/greatbuger/0001/0001.py b/greatbuger/0001/0001.py
new file mode 100644
index 00000000..decbe320
--- /dev/null
+++ b/greatbuger/0001/0001.py
@@ -0,0 +1,69 @@
+'''#-*-coding: utf-8-*-
+import uuid
+class codeGenerate:
+ def __init__(self):
+ self.num = 0
+ self.list =[]
+
+ def generate(self,num):
+ for i in range(num):
+ self.list.append(uuid.uuid1())
+
+ def returnList(self):
+ return self.list
+
+
+test = codeGenerate()
+test.generate(200)
+keys = test.returnList()
+
+with open('D:/python workSpace/showmethecode/0001/keys.txt','w') as f:
+ f.writelines("%s\n"%item for item in keys)
+
+print(len(keys))
+'''
+
+import uuid
+
+class generateKeys:
+ def __init__(self):
+ self.list = []
+ self.id_count = 0
+
+ def gengrateId(self,id_count):
+ for i in range(id_count):
+ self.list.append(uuid.uuid1())
+
+ def returnList(self):
+ return self.list
+
+
+test = generateKeys()
+test.gengrateId(200)
+keys = test.returnList()
+
+with open('D:/python workSpace/showmethecode/0001/keys1.txt','w') as f:
+ f.writelines("%s\n" % a for a in keys)
+
+print(len(keys))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/greatbuger/0001/keys.txt b/greatbuger/0001/keys.txt
new file mode 100644
index 00000000..6cdb34a5
--- /dev/null
+++ b/greatbuger/0001/keys.txt
@@ -0,0 +1,200 @@
+ab425bc0-d481-11e4-9ab7-e0db55a8bab9
+ab44a5b0-d481-11e4-9126-e0db55a8bab9
+ab44a5b1-d481-11e4-b602-e0db55a8bab9
+ab44a5b2-d481-11e4-8695-e0db55a8bab9
+ab44a5b3-d481-11e4-94ef-e0db55a8bab9
+ab44a5b4-d481-11e4-a8fc-e0db55a8bab9
+ab44a5b5-d481-11e4-9308-e0db55a8bab9
+ab44a5b6-d481-11e4-afe5-e0db55a8bab9
+ab44a5b7-d481-11e4-bee3-e0db55a8bab9
+ab44a5b8-d481-11e4-bac6-e0db55a8bab9
+ab44a5b9-d481-11e4-89a2-e0db55a8bab9
+ab44a5ba-d481-11e4-a2fa-e0db55a8bab9
+ab44a5bb-d481-11e4-9a64-e0db55a8bab9
+ab44a5bc-d481-11e4-8e2a-e0db55a8bab9
+ab44a5bd-d481-11e4-ad4e-e0db55a8bab9
+ab44a5be-d481-11e4-8b83-e0db55a8bab9
+ab44a5bf-d481-11e4-bd5d-e0db55a8bab9
+ab44a5c0-d481-11e4-93d7-e0db55a8bab9
+ab44a5c1-d481-11e4-86d5-e0db55a8bab9
+ab44a5c2-d481-11e4-a75a-e0db55a8bab9
+ab44a5c3-d481-11e4-b30f-e0db55a8bab9
+ab44a5c4-d481-11e4-8b0d-e0db55a8bab9
+ab44a5c5-d481-11e4-a7d2-e0db55a8bab9
+ab44a5c6-d481-11e4-ae9c-e0db55a8bab9
+ab44a5c7-d481-11e4-a50c-e0db55a8bab9
+ab44a5c8-d481-11e4-9a45-e0db55a8bab9
+ab44a5c9-d481-11e4-9ce9-e0db55a8bab9
+ab44a5ca-d481-11e4-a23f-e0db55a8bab9
+ab44a5cb-d481-11e4-9a70-e0db55a8bab9
+ab44a5cc-d481-11e4-967f-e0db55a8bab9
+ab44a5cd-d481-11e4-b3d2-e0db55a8bab9
+ab44a5ce-d481-11e4-8997-e0db55a8bab9
+ab44a5cf-d481-11e4-9af4-e0db55a8bab9
+ab44a5d0-d481-11e4-8a8c-e0db55a8bab9
+ab44a5d1-d481-11e4-b9f5-e0db55a8bab9
+ab44a5d2-d481-11e4-9f56-e0db55a8bab9
+ab44a5d3-d481-11e4-ab8d-e0db55a8bab9
+ab44a5d4-d481-11e4-b49d-e0db55a8bab9
+ab44a5d5-d481-11e4-8b7f-e0db55a8bab9
+ab44a5d6-d481-11e4-a267-e0db55a8bab9
+ab44a5d7-d481-11e4-acfd-e0db55a8bab9
+ab44a5d8-d481-11e4-ab02-e0db55a8bab9
+ab44a5d9-d481-11e4-afb7-e0db55a8bab9
+ab44a5da-d481-11e4-9cc7-e0db55a8bab9
+ab44a5db-d481-11e4-a328-e0db55a8bab9
+ab44a5dc-d481-11e4-b9a9-e0db55a8bab9
+ab44a5dd-d481-11e4-a16f-e0db55a8bab9
+ab44a5de-d481-11e4-92ab-e0db55a8bab9
+ab44a5df-d481-11e4-90e7-e0db55a8bab9
+ab44a5e0-d481-11e4-8993-e0db55a8bab9
+ab44a5e1-d481-11e4-95d2-e0db55a8bab9
+ab44a5e2-d481-11e4-99b1-e0db55a8bab9
+ab44a5e3-d481-11e4-8e01-e0db55a8bab9
+ab44a5e4-d481-11e4-b0f8-e0db55a8bab9
+ab44a5e5-d481-11e4-8af0-e0db55a8bab9
+ab44a5e6-d481-11e4-ad5c-e0db55a8bab9
+ab44a5e7-d481-11e4-a1a6-e0db55a8bab9
+ab44a5e8-d481-11e4-be98-e0db55a8bab9
+ab44a5e9-d481-11e4-816b-e0db55a8bab9
+ab44a5ea-d481-11e4-8f01-e0db55a8bab9
+ab44a5eb-d481-11e4-818c-e0db55a8bab9
+ab44a5ec-d481-11e4-9d8f-e0db55a8bab9
+ab44a5ed-d481-11e4-9da1-e0db55a8bab9
+ab44a5ee-d481-11e4-a387-e0db55a8bab9
+ab44a5ef-d481-11e4-b3e5-e0db55a8bab9
+ab44a5f0-d481-11e4-b52f-e0db55a8bab9
+ab44a5f1-d481-11e4-b14e-e0db55a8bab9
+ab44a5f2-d481-11e4-af2b-e0db55a8bab9
+ab44a5f3-d481-11e4-8b7a-e0db55a8bab9
+ab44a5f4-d481-11e4-b55c-e0db55a8bab9
+ab44a5f5-d481-11e4-aa88-e0db55a8bab9
+ab44a5f6-d481-11e4-aa7d-e0db55a8bab9
+ab44a5f7-d481-11e4-bee6-e0db55a8bab9
+ab44a5f8-d481-11e4-a173-e0db55a8bab9
+ab44a5f9-d481-11e4-9672-e0db55a8bab9
+ab44a5fa-d481-11e4-95c0-e0db55a8bab9
+ab44a5fb-d481-11e4-b90a-e0db55a8bab9
+ab44a5fc-d481-11e4-9e8a-e0db55a8bab9
+ab44a5fd-d481-11e4-bf07-e0db55a8bab9
+ab44a5fe-d481-11e4-9f56-e0db55a8bab9
+ab44a5ff-d481-11e4-88bc-e0db55a8bab9
+ab44a600-d481-11e4-8f25-e0db55a8bab9
+ab44a601-d481-11e4-bdb7-e0db55a8bab9
+ab44a602-d481-11e4-a15a-e0db55a8bab9
+ab44a603-d481-11e4-b57b-e0db55a8bab9
+ab44a604-d481-11e4-85d4-e0db55a8bab9
+ab44a605-d481-11e4-8eed-e0db55a8bab9
+ab44a606-d481-11e4-97ef-e0db55a8bab9
+ab44a607-d481-11e4-90ea-e0db55a8bab9
+ab44a608-d481-11e4-be43-e0db55a8bab9
+ab44a609-d481-11e4-a021-e0db55a8bab9
+ab44a60a-d481-11e4-ad95-e0db55a8bab9
+ab44a60b-d481-11e4-a9d3-e0db55a8bab9
+ab44a60c-d481-11e4-aee4-e0db55a8bab9
+ab44a60d-d481-11e4-971e-e0db55a8bab9
+ab44a60e-d481-11e4-bcf4-e0db55a8bab9
+ab44a60f-d481-11e4-8857-e0db55a8bab9
+ab44a610-d481-11e4-aae5-e0db55a8bab9
+ab44a611-d481-11e4-8f82-e0db55a8bab9
+ab44a612-d481-11e4-9991-e0db55a8bab9
+ab44a613-d481-11e4-aae6-e0db55a8bab9
+ab44a614-d481-11e4-82a3-e0db55a8bab9
+ab44a615-d481-11e4-af59-e0db55a8bab9
+ab44a616-d481-11e4-9ad2-e0db55a8bab9
+ab44a617-d481-11e4-876b-e0db55a8bab9
+ab44a618-d481-11e4-8ed1-e0db55a8bab9
+ab44a619-d481-11e4-8160-e0db55a8bab9
+ab44a61a-d481-11e4-a9a5-e0db55a8bab9
+ab44a61b-d481-11e4-853d-e0db55a8bab9
+ab44a61c-d481-11e4-8ea9-e0db55a8bab9
+ab44a61d-d481-11e4-bcf8-e0db55a8bab9
+ab44a61e-d481-11e4-98fb-e0db55a8bab9
+ab44a61f-d481-11e4-a24e-e0db55a8bab9
+ab44a620-d481-11e4-b66a-e0db55a8bab9
+ab44a621-d481-11e4-83dc-e0db55a8bab9
+ab44a622-d481-11e4-af55-e0db55a8bab9
+ab44a623-d481-11e4-9e37-e0db55a8bab9
+ab44a624-d481-11e4-9c22-e0db55a8bab9
+ab44a625-d481-11e4-a92d-e0db55a8bab9
+ab44a626-d481-11e4-a727-e0db55a8bab9
+ab44a627-d481-11e4-9d7e-e0db55a8bab9
+ab44a628-d481-11e4-8882-e0db55a8bab9
+ab44a629-d481-11e4-ad08-e0db55a8bab9
+ab44a62a-d481-11e4-ab33-e0db55a8bab9
+ab44a62b-d481-11e4-9a7e-e0db55a8bab9
+ab44a62c-d481-11e4-bbed-e0db55a8bab9
+ab44a62d-d481-11e4-ad85-e0db55a8bab9
+ab44a62e-d481-11e4-81c0-e0db55a8bab9
+ab44a62f-d481-11e4-83a0-e0db55a8bab9
+ab44a630-d481-11e4-9300-e0db55a8bab9
+ab44a631-d481-11e4-bde1-e0db55a8bab9
+ab44a632-d481-11e4-921a-e0db55a8bab9
+ab44a633-d481-11e4-8679-e0db55a8bab9
+ab44a634-d481-11e4-9448-e0db55a8bab9
+ab44a635-d481-11e4-a6e1-e0db55a8bab9
+ab44a636-d481-11e4-b2e5-e0db55a8bab9
+ab44a637-d481-11e4-a954-e0db55a8bab9
+ab44a638-d481-11e4-a349-e0db55a8bab9
+ab44a639-d481-11e4-aecf-e0db55a8bab9
+ab44a63a-d481-11e4-896a-e0db55a8bab9
+ab44a63b-d481-11e4-82d4-e0db55a8bab9
+ab44a63c-d481-11e4-a81f-e0db55a8bab9
+ab44a63d-d481-11e4-b1e6-e0db55a8bab9
+ab44a63e-d481-11e4-a9b5-e0db55a8bab9
+ab44a63f-d481-11e4-8938-e0db55a8bab9
+ab44a640-d481-11e4-8f4b-e0db55a8bab9
+ab44a641-d481-11e4-9042-e0db55a8bab9
+ab44a642-d481-11e4-b8b3-e0db55a8bab9
+ab44a643-d481-11e4-9b17-e0db55a8bab9
+ab44a644-d481-11e4-8306-e0db55a8bab9
+ab44a645-d481-11e4-a1d9-e0db55a8bab9
+ab44a646-d481-11e4-8ba6-e0db55a8bab9
+ab44a647-d481-11e4-8361-e0db55a8bab9
+ab44a648-d481-11e4-9f3c-e0db55a8bab9
+ab44a649-d481-11e4-bb05-e0db55a8bab9
+ab44a64a-d481-11e4-ac62-e0db55a8bab9
+ab44a64b-d481-11e4-8967-e0db55a8bab9
+ab44a64c-d481-11e4-9858-e0db55a8bab9
+ab44a64d-d481-11e4-a2e8-e0db55a8bab9
+ab44a64e-d481-11e4-81bd-e0db55a8bab9
+ab44a64f-d481-11e4-b79c-e0db55a8bab9
+ab44a650-d481-11e4-aa75-e0db55a8bab9
+ab44a651-d481-11e4-b6aa-e0db55a8bab9
+ab44a652-d481-11e4-aabb-e0db55a8bab9
+ab44a653-d481-11e4-bfb6-e0db55a8bab9
+ab44a654-d481-11e4-a131-e0db55a8bab9
+ab44a655-d481-11e4-9ba6-e0db55a8bab9
+ab44a656-d481-11e4-a42b-e0db55a8bab9
+ab44a657-d481-11e4-9607-e0db55a8bab9
+ab44a658-d481-11e4-9479-e0db55a8bab9
+ab44a659-d481-11e4-b6de-e0db55a8bab9
+ab44a65a-d481-11e4-a4e8-e0db55a8bab9
+ab44a65b-d481-11e4-8d60-e0db55a8bab9
+ab44a65c-d481-11e4-9e83-e0db55a8bab9
+ab44a65d-d481-11e4-8be7-e0db55a8bab9
+ab44a65e-d481-11e4-891c-e0db55a8bab9
+ab44a65f-d481-11e4-9818-e0db55a8bab9
+ab44a660-d481-11e4-a70e-e0db55a8bab9
+ab44a661-d481-11e4-bab0-e0db55a8bab9
+ab44a662-d481-11e4-b879-e0db55a8bab9
+ab44a663-d481-11e4-8807-e0db55a8bab9
+ab44a664-d481-11e4-bf55-e0db55a8bab9
+ab44a665-d481-11e4-85e4-e0db55a8bab9
+ab44a666-d481-11e4-ba78-e0db55a8bab9
+ab44a667-d481-11e4-adf0-e0db55a8bab9
+ab44a668-d481-11e4-947d-e0db55a8bab9
+ab44a669-d481-11e4-b156-e0db55a8bab9
+ab44a66a-d481-11e4-b7a9-e0db55a8bab9
+ab44a66b-d481-11e4-b1b7-e0db55a8bab9
+ab44a66c-d481-11e4-b45d-e0db55a8bab9
+ab44a66d-d481-11e4-89d8-e0db55a8bab9
+ab44a66e-d481-11e4-97ec-e0db55a8bab9
+ab44a66f-d481-11e4-9087-e0db55a8bab9
+ab44a670-d481-11e4-9c11-e0db55a8bab9
+ab44a671-d481-11e4-91d8-e0db55a8bab9
+ab44a672-d481-11e4-a950-e0db55a8bab9
+ab44a673-d481-11e4-934a-e0db55a8bab9
+ab44a674-d481-11e4-98d4-e0db55a8bab9
+ab44a675-d481-11e4-a16d-e0db55a8bab9
+ab44a676-d481-11e4-8bb6-e0db55a8bab9
diff --git a/greatbuger/0001/keys1.txt b/greatbuger/0001/keys1.txt
new file mode 100644
index 00000000..cb5050b8
--- /dev/null
+++ b/greatbuger/0001/keys1.txt
@@ -0,0 +1,200 @@
+5eafb94f-e044-11e4-a6c3-e0db55a8bab9
+5eb5acc0-e044-11e4-aaad-e0db55a8bab9
+5eb5d3d1-e044-11e4-9636-e0db55a8bab9
+5eb5d3d2-e044-11e4-813c-e0db55a8bab9
+5eb5d3d3-e044-11e4-a2ba-e0db55a8bab9
+5eb5d3d4-e044-11e4-8f7b-e0db55a8bab9
+5eb5d3d5-e044-11e4-87e5-e0db55a8bab9
+5eb5d3d6-e044-11e4-a383-e0db55a8bab9
+5eb5d3d7-e044-11e4-9498-e0db55a8bab9
+5eb5d3d8-e044-11e4-9816-e0db55a8bab9
+5eb5d3d9-e044-11e4-a5f2-e0db55a8bab9
+5eb5d3da-e044-11e4-91b6-e0db55a8bab9
+5eb5d3db-e044-11e4-8187-e0db55a8bab9
+5eb5d3dc-e044-11e4-b022-e0db55a8bab9
+5eb5d3dd-e044-11e4-94f9-e0db55a8bab9
+5eb5d3de-e044-11e4-9f26-e0db55a8bab9
+5eb5d3df-e044-11e4-929f-e0db55a8bab9
+5eb5d3e0-e044-11e4-824b-e0db55a8bab9
+5eb5d3e1-e044-11e4-9120-e0db55a8bab9
+5eb5d3e2-e044-11e4-886d-e0db55a8bab9
+5eb5d3e3-e044-11e4-8dd9-e0db55a8bab9
+5eb5d3e4-e044-11e4-805a-e0db55a8bab9
+5eb5d3e5-e044-11e4-9380-e0db55a8bab9
+5eb5d3e6-e044-11e4-8136-e0db55a8bab9
+5eb5d3e7-e044-11e4-b778-e0db55a8bab9
+5eb5fae1-e044-11e4-828a-e0db55a8bab9
+5eb5fae2-e044-11e4-b9a1-e0db55a8bab9
+5eb5fae3-e044-11e4-b005-e0db55a8bab9
+5eb5fae4-e044-11e4-a9a4-e0db55a8bab9
+5eb5fae5-e044-11e4-9ea1-e0db55a8bab9
+5eb5fae6-e044-11e4-b9ea-e0db55a8bab9
+5eb5fae7-e044-11e4-80fe-e0db55a8bab9
+5eb5fae8-e044-11e4-8744-e0db55a8bab9
+5eb5fae9-e044-11e4-b942-e0db55a8bab9
+5eb5faea-e044-11e4-96bc-e0db55a8bab9
+5eb5faeb-e044-11e4-be74-e0db55a8bab9
+5eb5faec-e044-11e4-8e06-e0db55a8bab9
+5eb5faed-e044-11e4-ad51-e0db55a8bab9
+5eb5faee-e044-11e4-b123-e0db55a8bab9
+5eb5faef-e044-11e4-a03f-e0db55a8bab9
+5eb5faf0-e044-11e4-bae1-e0db55a8bab9
+5eb5faf1-e044-11e4-ac54-e0db55a8bab9
+5eb5faf2-e044-11e4-81ab-e0db55a8bab9
+5eb5faf3-e044-11e4-aff9-e0db55a8bab9
+5eb5faf4-e044-11e4-bbce-e0db55a8bab9
+5eb5faf5-e044-11e4-a475-e0db55a8bab9
+5eb5faf6-e044-11e4-b846-e0db55a8bab9
+5eb5faf7-e044-11e4-acd9-e0db55a8bab9
+5eb621f0-e044-11e4-b638-e0db55a8bab9
+5eb621f1-e044-11e4-874a-e0db55a8bab9
+5eb621f2-e044-11e4-84e6-e0db55a8bab9
+5eb621f3-e044-11e4-b885-e0db55a8bab9
+5eb621f4-e044-11e4-a9d7-e0db55a8bab9
+5eb621f5-e044-11e4-9ec4-e0db55a8bab9
+5eb621f6-e044-11e4-9b38-e0db55a8bab9
+5eb621f7-e044-11e4-b668-e0db55a8bab9
+5eb621f8-e044-11e4-84cf-e0db55a8bab9
+5eb621f9-e044-11e4-b5b8-e0db55a8bab9
+5eb621fa-e044-11e4-a1e4-e0db55a8bab9
+5eb621fb-e044-11e4-b7ae-e0db55a8bab9
+5eb621fc-e044-11e4-8205-e0db55a8bab9
+5eb621fd-e044-11e4-b5cc-e0db55a8bab9
+5eb621fe-e044-11e4-a2e7-e0db55a8bab9
+5eb621ff-e044-11e4-90be-e0db55a8bab9
+5eb62200-e044-11e4-8656-e0db55a8bab9
+5eb62201-e044-11e4-abff-e0db55a8bab9
+5eb62202-e044-11e4-b3a5-e0db55a8bab9
+5eb62203-e044-11e4-a100-e0db55a8bab9
+5eb62204-e044-11e4-a8dd-e0db55a8bab9
+5eb62205-e044-11e4-9cfd-e0db55a8bab9
+5eb62206-e044-11e4-9d4b-e0db55a8bab9
+5eb64900-e044-11e4-ac65-e0db55a8bab9
+5eb64901-e044-11e4-9ceb-e0db55a8bab9
+5eb64902-e044-11e4-9c99-e0db55a8bab9
+5eb64903-e044-11e4-950d-e0db55a8bab9
+5eb64904-e044-11e4-84c8-e0db55a8bab9
+5eb64905-e044-11e4-bea7-e0db55a8bab9
+5eb64906-e044-11e4-8010-e0db55a8bab9
+5eb64907-e044-11e4-a0ef-e0db55a8bab9
+5eb64908-e044-11e4-812e-e0db55a8bab9
+5eb64909-e044-11e4-867c-e0db55a8bab9
+5eb6490a-e044-11e4-b4fc-e0db55a8bab9
+5eb6490b-e044-11e4-a4db-e0db55a8bab9
+5eb6490c-e044-11e4-a38c-e0db55a8bab9
+5eb6490d-e044-11e4-af3f-e0db55a8bab9
+5eb6490e-e044-11e4-b8ed-e0db55a8bab9
+5eb6490f-e044-11e4-9fec-e0db55a8bab9
+5eb64910-e044-11e4-9552-e0db55a8bab9
+5eb64911-e044-11e4-833d-e0db55a8bab9
+5eb6700f-e044-11e4-84ce-e0db55a8bab9
+5eb67010-e044-11e4-aa0d-e0db55a8bab9
+5eb67011-e044-11e4-809d-e0db55a8bab9
+5eb67012-e044-11e4-baa7-e0db55a8bab9
+5eb67013-e044-11e4-8942-e0db55a8bab9
+5eb67014-e044-11e4-aec3-e0db55a8bab9
+5eb67015-e044-11e4-b0cd-e0db55a8bab9
+5eb67016-e044-11e4-96f1-e0db55a8bab9
+5eb67017-e044-11e4-933a-e0db55a8bab9
+5eb67018-e044-11e4-9ac7-e0db55a8bab9
+5eb67019-e044-11e4-8a74-e0db55a8bab9
+5eb6701a-e044-11e4-af8b-e0db55a8bab9
+5eb6701b-e044-11e4-9418-e0db55a8bab9
+5eb6701c-e044-11e4-b063-e0db55a8bab9
+5eb6701d-e044-11e4-98f9-e0db55a8bab9
+5eb6701e-e044-11e4-936d-e0db55a8bab9
+5eb6701f-e044-11e4-9fd8-e0db55a8bab9
+5eb67020-e044-11e4-9f5a-e0db55a8bab9
+5eb67021-e044-11e4-bf58-e0db55a8bab9
+5eb67022-e044-11e4-a3f9-e0db55a8bab9
+5eb67023-e044-11e4-b12b-e0db55a8bab9
+5eb67024-e044-11e4-9a6e-e0db55a8bab9
+5eb67025-e044-11e4-85db-e0db55a8bab9
+5eb6971e-e044-11e4-b735-e0db55a8bab9
+5eb6971f-e044-11e4-89ed-e0db55a8bab9
+5eb69720-e044-11e4-8b12-e0db55a8bab9
+5eb69721-e044-11e4-9ddd-e0db55a8bab9
+5eb69722-e044-11e4-a5b0-e0db55a8bab9
+5eb69723-e044-11e4-b5df-e0db55a8bab9
+5eb69724-e044-11e4-897f-e0db55a8bab9
+5eb69725-e044-11e4-b90b-e0db55a8bab9
+5eb69726-e044-11e4-94fd-e0db55a8bab9
+5eb69727-e044-11e4-a030-e0db55a8bab9
+5eb69728-e044-11e4-8687-e0db55a8bab9
+5eb69729-e044-11e4-8ec6-e0db55a8bab9
+5eb6972a-e044-11e4-b407-e0db55a8bab9
+5eb6972b-e044-11e4-9710-e0db55a8bab9
+5eb6972c-e044-11e4-b11b-e0db55a8bab9
+5eb6972d-e044-11e4-9e84-e0db55a8bab9
+5eb6972e-e044-11e4-aecc-e0db55a8bab9
+5eb6972f-e044-11e4-b576-e0db55a8bab9
+5eb69730-e044-11e4-917b-e0db55a8bab9
+5eb69731-e044-11e4-9e1a-e0db55a8bab9
+5eb69732-e044-11e4-85b7-e0db55a8bab9
+5eb69733-e044-11e4-bb10-e0db55a8bab9
+5eb69734-e044-11e4-8137-e0db55a8bab9
+5eb6be2e-e044-11e4-87f5-e0db55a8bab9
+5eb6be2f-e044-11e4-9cb9-e0db55a8bab9
+5eb6be30-e044-11e4-9097-e0db55a8bab9
+5eb6be31-e044-11e4-bf54-e0db55a8bab9
+5eb6be32-e044-11e4-be8f-e0db55a8bab9
+5eb6be33-e044-11e4-abd4-e0db55a8bab9
+5eb6be34-e044-11e4-99cf-e0db55a8bab9
+5eb6be35-e044-11e4-90a8-e0db55a8bab9
+5eb6be36-e044-11e4-a4a9-e0db55a8bab9
+5eb6be37-e044-11e4-8c14-e0db55a8bab9
+5eb6be38-e044-11e4-8ab9-e0db55a8bab9
+5eb6be39-e044-11e4-a5b3-e0db55a8bab9
+5eb6be3a-e044-11e4-b5bf-e0db55a8bab9
+5eb6be3b-e044-11e4-8507-e0db55a8bab9
+5eb6e540-e044-11e4-9a4f-e0db55a8bab9
+5eb6e541-e044-11e4-a637-e0db55a8bab9
+5eb6e542-e044-11e4-aaf9-e0db55a8bab9
+5eb6e543-e044-11e4-af5a-e0db55a8bab9
+5eb6e544-e044-11e4-a06a-e0db55a8bab9
+5eb6e545-e044-11e4-9add-e0db55a8bab9
+5eb6e546-e044-11e4-9d31-e0db55a8bab9
+5eb6e547-e044-11e4-bfdc-e0db55a8bab9
+5eb6e548-e044-11e4-a369-e0db55a8bab9
+5eb6e549-e044-11e4-b506-e0db55a8bab9
+5eb6e54a-e044-11e4-b7a5-e0db55a8bab9
+5eb6e54b-e044-11e4-b414-e0db55a8bab9
+5eb6e54c-e044-11e4-8978-e0db55a8bab9
+5eb6e54d-e044-11e4-9f45-e0db55a8bab9
+5eb6e54e-e044-11e4-a92b-e0db55a8bab9
+5eb6e54f-e044-11e4-80c7-e0db55a8bab9
+5eb6e550-e044-11e4-8c03-e0db55a8bab9
+5eb6e551-e044-11e4-b1e1-e0db55a8bab9
+5eb6e552-e044-11e4-ac17-e0db55a8bab9
+5eb6e553-e044-11e4-9e9e-e0db55a8bab9
+5eb6e554-e044-11e4-9411-e0db55a8bab9
+5eb6e555-e044-11e4-9005-e0db55a8bab9
+5eb6e556-e044-11e4-9299-e0db55a8bab9
+5eb6e557-e044-11e4-8611-e0db55a8bab9
+5eb70c4f-e044-11e4-9910-e0db55a8bab9
+5eb70c50-e044-11e4-b870-e0db55a8bab9
+5eb70c51-e044-11e4-8117-e0db55a8bab9
+5eb70c52-e044-11e4-b829-e0db55a8bab9
+5eb70c53-e044-11e4-a037-e0db55a8bab9
+5eb70c54-e044-11e4-9ed2-e0db55a8bab9
+5eb70c55-e044-11e4-aa48-e0db55a8bab9
+5eb70c56-e044-11e4-a221-e0db55a8bab9
+5eb70c57-e044-11e4-a923-e0db55a8bab9
+5eb70c58-e044-11e4-99c9-e0db55a8bab9
+5eb70c59-e044-11e4-a36f-e0db55a8bab9
+5eb70c5a-e044-11e4-920c-e0db55a8bab9
+5eb70c5b-e044-11e4-aa05-e0db55a8bab9
+5eb70c5c-e044-11e4-a52e-e0db55a8bab9
+5eb70c5d-e044-11e4-93b5-e0db55a8bab9
+5eb70c5e-e044-11e4-8835-e0db55a8bab9
+5eb70c5f-e044-11e4-b45e-e0db55a8bab9
+5eb70c60-e044-11e4-ad63-e0db55a8bab9
+5eb70c61-e044-11e4-bd69-e0db55a8bab9
+5eb70c62-e044-11e4-b6d5-e0db55a8bab9
+5eb70c63-e044-11e4-9d5a-e0db55a8bab9
+5eb70c64-e044-11e4-95e6-e0db55a8bab9
+5eb70c65-e044-11e4-b151-e0db55a8bab9
+5eb7335e-e044-11e4-b416-e0db55a8bab9
+5eb7335f-e044-11e4-a40b-e0db55a8bab9
+5eb73360-e044-11e4-a21d-e0db55a8bab9
+5eb73361-e044-11e4-9c87-e0db55a8bab9
diff --git a/hooting/0011/0011.py b/hooting/0011/0011.py
new file mode 100644
index 00000000..b9ca6211
--- /dev/null
+++ b/hooting/0011/0011.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+__author__ = 'hooting'
+with open('filtered_words.txt','r')as f:
+ filter = [line.rstrip() for line in f]
+
+while True:
+ text = raw_input("please input:")
+ for x in filter:
+ if x in text:
+ print "Freedom"
+ break
+ else:
+ print "Human Rights"
diff --git a/hooting/0011/filtered_words.txt b/hooting/0011/filtered_words.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/hooting/0011/filtered_words.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/hooting/0012/0012.py b/hooting/0012/0012.py
new file mode 100644
index 00000000..4cb26925
--- /dev/null
+++ b/hooting/0012/0012.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+__author__ = 'hooting'
+with open('filtered_words.txt','r')as f:
+ filter = [line.rstrip() for line in f]
+
+while True:
+ text = raw_input("please input:")
+ for x in filter:
+ if x in text:
+ print len(x)
+ text = text.replace(x, '*'*len(x))
+ print text
diff --git a/hooting/0012/filtered_words.txt b/hooting/0012/filtered_words.txt
new file mode 100644
index 00000000..69373b64
--- /dev/null
+++ b/hooting/0012/filtered_words.txt
@@ -0,0 +1,11 @@
+北京
+程序员
+公务员
+领导
+牛比
+牛逼
+你娘
+你妈
+love
+sex
+jiangge
\ No newline at end of file
diff --git a/houshengandt/readme.md b/houshengandt/readme.md
new file mode 100644
index 00000000..8d260923
--- /dev/null
+++ b/houshengandt/readme.md
@@ -0,0 +1,28 @@
+#My Repository
+##My-Solutions-For-Show-Me-the-Code
+https://github.com/houshengandt/My-Solutions-For-Show-Me-The-Code
+##关于第0025题百度语音解法
+https://github.com/houshengandt/My-Solutions-For-Show-Me-The-Code/blob/master/0025/help.md
+
+###使用方法
+`python3 0025.py`
+
+在 输出 正在录音...... 时喊出你想打开的网站,录音时间有5秒,之后会上传。
+目前支持“百度”“微博”“谷歌”,可以在代码中的dict website 里添加你想要的网站,但注意识别不是百分百准确,每个人口音也有差异,根据识别结果来调整value值。
+
+######题目
+[Python 练习册,每天一个小程序](https://github.com/Yixiaohan/show-me-the-code)
+>第 0025 题: 使用Python实现:对着电脑吼一声,自动打开浏览器中的默认网站。
+>
+>例如,对着笔记本电脑吼一声“百度”,浏览器自动打开百度首页。
+>
+> 关键字:Speech to Text
+
+
+
+PyAudio是唯一一个用到的外部库,用来录制音频文件,官方的[录音实例](http://people.csail.mit.edu/hubert/pyaudio/#record-example)可以直接拿来使用。
+
+使用 百度语音识别 REST API:
+* [官方文档](http://yuyin.baidu.com/docs/asr/56)
+* [access_token的获取](http://developer.baidu.com/wiki/index.php?title=docs/oauth/client)
+* 注意,“百度”会被识别为“baidu,”,即使返回“百渡”也不回“百度”,遇到相同问题的不要太纠结。
diff --git a/jennydai2011/0000/0000-01-result-wechat_number.jpg b/jennydai2011/0000/0000-01-result-wechat_number.jpg
new file mode 100644
index 00000000..48e1da46
Binary files /dev/null and b/jennydai2011/0000/0000-01-result-wechat_number.jpg differ
diff --git a/jennydai2011/0000/0000-02-result.jpg b/jennydai2011/0000/0000-02-result.jpg
new file mode 100644
index 00000000..12857aa8
Binary files /dev/null and b/jennydai2011/0000/0000-02-result.jpg differ
diff --git a/jennydai2011/0000/0000-02.py b/jennydai2011/0000/0000-02.py
new file mode 100644
index 00000000..2f7f520e
--- /dev/null
+++ b/jennydai2011/0000/0000-02.py
@@ -0,0 +1,19 @@
+#!"C:\Python34\python.exe"
+
+from PIL import Image, ImageDraw, ImageFont
+import sys, os, random
+
+num = str(random.randint(1,99))
+def add_num(img):
+ draw = ImageDraw.Draw(img)
+ myfont = ImageFont.truetype('c:/windows/fonts/Arial.ttf', size=40)
+ fillcolor = "#ff0000"
+ width, height = img.size
+ draw.text((width-40, 0), num, font=myfont, fill=fillcolor)
+ img.save('C:/java/pythonProjects/Learning/YixiaohanDailyTask/0000/0000-02-result.jpg', 'jpeg')
+
+ return 0
+
+if __name__ == '__main__':
+ image = Image.open('C:/java/pythonProjects/Learning/YixiaohanDailyTask/0000/image.jpg')
+ add_num(image)
\ No newline at end of file
diff --git a/jennydai2011/0000/0000.py b/jennydai2011/0000/0000.py
new file mode 100644
index 00000000..e69a6e55
--- /dev/null
+++ b/jennydai2011/0000/0000.py
@@ -0,0 +1,28 @@
+#!"C:\Python34\python.exe"
+#import Image
+from PIL import Image, ImageDraw, ImageFont, ImageFilter
+import sys, os, random
+
+num = str(random.randint(1,99))
+imagePath =os.path.join(sys.path[0], 'wechat.jpg')
+savePath=os.path.join(sys.path[0], '0000-01-result-wechat_number.jpg')
+
+def add_num(im, wDraw, hDraw):
+ font = ImageFont.truetype('arial.ttf', 30)
+ draw = ImageDraw.Draw(im)
+ draw.ellipse(
+ (radioX, radioY, radioX + 30, radioY + 30), fill ='red', outline='red')
+ draw.text((wDraw, hDraw), num, font=font, fill='white')
+ im.save(savePath, 'jpeg')
+
+if __name__ == '__main__':
+ im = Image.open(imagePath)
+ w, h = im.size
+ print('Original image size: %sx%s' %(w,h))
+ wDraw = int(0.8 * w)
+ hDraw = int(0.01 * h)
+ radioX = wDraw
+ radioY = hDraw
+ print('radioX:', radioX)
+ print('radioY:', radioY)
+ add_num(im, wDraw, hDraw)
\ No newline at end of file
diff --git a/jennydai2011/0000/arial.ttf b/jennydai2011/0000/arial.ttf
new file mode 100644
index 00000000..ad7d8eab
Binary files /dev/null and b/jennydai2011/0000/arial.ttf differ
diff --git a/jennydai2011/0000/image.jpg b/jennydai2011/0000/image.jpg
new file mode 100644
index 00000000..61803e7c
Binary files /dev/null and b/jennydai2011/0000/image.jpg differ
diff --git a/jennydai2011/0000/wechat.jpg b/jennydai2011/0000/wechat.jpg
new file mode 100644
index 00000000..12bc5429
Binary files /dev/null and b/jennydai2011/0000/wechat.jpg differ
diff --git a/jessun1990/README.MD b/jessun1990/README.MD
new file mode 100644
index 00000000..55f2d0ee
--- /dev/null
+++ b/jessun1990/README.MD
@@ -0,0 +1,4 @@
+# My Repository
+
+My python-homework is here: [ https://github.com/jessun1990/python-homework ](https://github.com/jessun1990/python-homework)
+
diff --git a/jhgdike/0004/solution.py b/jhgdike/0004/solution.py
new file mode 100644
index 00000000..f794c5b2
--- /dev/null
+++ b/jhgdike/0004/solution.py
@@ -0,0 +1,14 @@
+# coding: utf-8
+
+import re
+from collections import Counter
+
+
+def word_count(txt):
+ word_pattern = r'[a-zA-Z-]+'
+ words = re.findall(word_pattern, txt)
+ return Counter(words).items()
+
+if __name__ == '__main__':
+ txt = open('test.txt', 'r').read().lower()
+ print word_count(txt)
diff --git a/jhgdike/0004/test.txt b/jhgdike/0004/test.txt
new file mode 100644
index 00000000..bdd031c4
--- /dev/null
+++ b/jhgdike/0004/test.txt
@@ -0,0 +1 @@
+Henry was a pen name used by an American writer of short stories. His real name was William Sydney Porter. He was born in North Carolina in 1862. As a young boy he lived an exciting life. He did not go to school for very long, but he managed to teach himself everything he needed to know. When he was about 20 years old, O. Henry went to Texas, where he tried different jobs. He first worked on a newspaper, and then had a job in a bank, when some money went missing from the bank O. Henry was believed to have stolen it. Because of that, he was sent to prison. During the three years in prison, he learned to write short stories. After he got out of prison, he went to New York and continued writing. He wrote mostly about New York and the life of the poor there. People liked his stories, because simple as the tales were, they would finish with a sudden change at the end, to the reader¡¯s surprise.
diff --git a/jiangqideng/.gitignore b/jiangqideng/.gitignore
new file mode 100644
index 00000000..f73806eb
--- /dev/null
+++ b/jiangqideng/.gitignore
@@ -0,0 +1 @@
+.ipynb_checkpoints/
\ No newline at end of file
diff --git "a/jiangqideng/python\347\273\203\344\271\240\351\242\230\345\217\212\347\255\224\346\241\210-\357\274\2100000\351\242\230-0025\351\242\230\357\274\211-html\351\242\204\350\247\210\347\211\210.html" "b/jiangqideng/python\347\273\203\344\271\240\351\242\230\345\217\212\347\255\224\346\241\210-\357\274\2100000\351\242\230-0025\351\242\230\357\274\211-html\351\242\204\350\247\210\347\211\210.html"
new file mode 100644
index 00000000..cbac536a
--- /dev/null
+++ "b/jiangqideng/python\347\273\203\344\271\240\351\242\230\345\217\212\347\255\224\346\241\210-\357\274\2100000\351\242\230-0025\351\242\230\357\274\211-html\351\242\204\350\247\210\347\211\210.html"
@@ -0,0 +1,16493 @@
+
+
+
+python练习题及答案-(0000题-0025题)-ipython-notebook版本
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+