摘要:
题目传送口:https://github.com/Yixiaohan/show-me-the-code 第 0011 题: 敏感词文本文件 filtered_words.txt,里面的内容为以下内容,当用户输入敏感词语时,则打印出 Freedom,否则打印出 Human Rights。 第 0012 阅读全文
摘要:
题目传送口:https://github.com/Yixiaohan/show-me-the-code 第 0010 题: 使用 Python 生成类似于下图中的字母验证码图片 思路:使用PIL来生成背景,文字,干扰线。通过ImageFilter来对图像进行平滑、锐化、边界增强等滤波处理。 代码如下 阅读全文
摘要:
题目传送口:https://github.com/Yixiaohan/show-me-the-code 第 0001 题: 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)? 附加:将生 阅读全文
摘要:
题目传送口:https://github.com/Yixiaohan/show-me-the-code 第 0000 题: 将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。 类似于图中效果 制作该图片涉及到PIL库,代码如下: #!/usr/bin/env 阅读全文
摘要:
dāng dāng dāng dǎng 第一天来这里 随便记录一下啦 阅读全文