Some tools for my self when learning python :)
Learning python in my spare time from 2017-12-26.
Some my handy programs written and pulled here.
Detail at: http://coding.kamilet.cn (in Chinese)
Follow my designing site: http://www.kamilet.cn (in Chinese)
个人自学python和相关内容的记录,写了一些有用没用的小玩意存储在这。
欢迎提供修改意见,万分感谢!
Simple Matrix python Code here
矩阵处理模块 | 处理和计算简单的矩阵
A lightweight module for simple Matrix operation. Simple and easy to use.
- A module smaller than Numpy
A library management system Code here
图书管理系统 | 没有GUI | 不使用SQL或拓展库 | 使用TXT固化数据
- using TXT file to immobilize data
- using python Dictionary to save and manage data in RAM
- No SQL or Third-party Libraries used
- No GUI
- Hints are in Chinese (utf-8)
A 2048 game without UI Code here
2048游戏 | 没有GUI
- No SQL or Third-party Libraries used
- No GUI
- Hints are in Chinese (utf-8)
A Joker Card game without UI Code here
抽鬼牌 | 没有GUI | 伪随机
- No SQL or Third-party Libraries used
- No GUI
- Hints are in Chinese (utf-8)
Get URL from oline XML file Code here
获取网站XML里的链接列表 | 使用Requests库 | 输出TXT文件
- using Requests
$ curl -OL https://github.com/kennethreitz/requests/zipball/master
$ python setup.py install - Hints are in Chinese
- You'll get a TXT file
Get Outbound Links from online page Code here
获取网站的外链 | 使用Requests库 | 输出TXT文件
- using Requests
$ curl -OL https://github.com/kennethreitz/requests/zipball/master $ python setup.py install
- Hints are in Chinese
- You'll get a TXT file
Chinese ID check Code here
检查身份证号 | 不精确,待更新
- Check whether ID in right format
No dictionary for Area Codes, maybe update for that
Conver .PY file to .MD file Code here
转化PY文件为MD文件 | 用于个人方便地发布代码 | 使用前请修改
- Using in my Git Page: http://coding.kamilet.cn
- Write File header automately
- Select the information in '''The Introduction''' and write before more<!-- more -->
- Add your code with {highlight} and {endhighlight}
- You need to edit it if inusing different Jekyll theme
Read Numbers in Chinese Code here
会计或发票用,数字转化汉字 | 贴心地为你在高位后的任何一位写上零 | 没小数部分会以'整'结尾 | 直接输出,没有返回
- No returns, Just print
- Turn numbers to Chinese for accounting...
- Print just like (5031.23):
伍 | 仟 | 零 | 佰 | 叁 | 拾 | 壹 | 圆 | 贰 | 角 | 贰 | 分
Readnumbers Code here
读文字,英文版 | 可以加s或不加 | 可以用数字的形式读位
- Read numbers smaller than 999,999,999,999
- Optional for add 's' to carrys
if the point in area/block Code here
判断点是否在区域内 | 可用于地图 | 点射线法
Water jars problem Code here
量水问题 | 给定两个杯子测出需求的水量
Something not that useful Code here
Delete NEF file when not a JPG file with same name
移走NEF文件,如果没有同名JPG文件 | JPG筛选照片更科学
- Won't really delete, just move to a floder
- You may want select Photos with JPG
Replace some STRING in file name
替换当前路径文件名中特定字符 | 可能弄乱你的目录
- Maybe mess your library
- Warning
A Palindrome Check for STRING
检查字符是否是回文 | 没卵用吧大概
- Won't read punctuation marks
- Won't mind upper letter
Roman Number Code here 将阿拉伯数字转化为罗马数字
- Corver to roman number
My solutions in CheckIO game Code here
CheckIO游戏自己的解法 | 有些真的很差!
- The game here