Ethan.Penx Blog

给我一个机会, 我想做好人...

Network Ports Scanner

" A low-level Multiple Thread network ports scanner with python"

Port Scanner Port scanner is an application designed to probe a server or host for open ports. A port scan is a process that sends client requests to a range of server port addresses on a host, wi...

Superimposed Picture

"Just for fun. 叠加与拼接图片!"

背景须知 照片模式 1 1位像素,黑和白,存成8位的像素 L 8位像素,黑和白 P 8位像素,使用调色板映射到任何其他模式 RGB 3 x 8 位像素,真彩 RGBA 4 x 8 位像素,真彩 + 透明通道 CMYK 4 x 8 位像素,颜色隔离 YCbCR 3 x 8 位像素, 彩色视频格式 I 32 位整型像素 F 32 位浮点型像素 常见的...

Convert the Picture to Ascii

"Just for fun."

Python code convert a picture to text. from PIL import Image import argparse # turn all of the ascii_char to list ['$', '@', ...., '.'] ascii_char = list("$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvun...

Get the Subtitle

" get the subtitle with Python from .srt file! "

Get the Subtitle Avatar: The last Airbender, 起初是为了练习英语听力及口语而了解的一部动漫,评价很是不错,看了下来之后确实很是喜欢。从网上 Download 下来 .srt 文件,打印之的话,其中的时间行却是无用。 自己写了个小脚本将字幕提取了出来。 这部剧有三季,Download 下来三季的 zip 包,解压缩后放置在桌面上各季的文件夹中。分别...

Python Module RE

" RE for Regular Expression! "

RE >>> str1 = ' ShenZhen University ' >>> str1.find('University') 10 >>> str1.find('11') -1 >>> help(str1.find) find(...) S.find(sub [,start [,end]]) -> int...

Notes of Core Python Programming, 2nd edition

" Python is an elegant and robust programming language ?"

Python Objects Numbers Mapping and Set Types Functions and Functional Programming Python Objects 工厂函数 就是指那些内建函数都是类对象,当调用他们时,实际上是创建了一个类实例。 #####变量定义 显示声明 C: 变量声明必须位于代码块...

2016-06-30 and Double Pinyin

" The same is lame! "

” 也许以后还会应付其他考试,但今天这场该是最后一场算学分的考试了,感觉像是快要毕业了,虽然还早,也许,也并不早…” 2016-06-30 翻查了下早先的Schedule,共有四次,每次都以日期命名,初次为2016-03-01-Schedule,间隔差不多均是一月,今次稍加总结。主要有以下几项内容: 1. English 听说: IPAD百度云赖世雄音标:...

Python Challenge (7 - 10)

" The first programming riddle on the net "

PythonChallenge To read the pre-Level of PythonChallenge at this site: Ethan.Penx Blog in ITeye Table of Contents Level 7 Level 8 Level 9 Level 10 Level 7 Riddle Page L7: http:...