![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
limn2o4
这个作者很懒,什么都没留下…
展开
-
Python 娱乐项目:用BeautifulSoup抓取时光网图片
最近学了BeautifulSoup,也算是为了以后找测试样例方便,写了一个抓取图片的小例子: 平台:python3.6from bs4 import BeautifulSoup from urllib import requestdef getpage(url): page = request.urlopen(url) html = page.read() return h原创 2017-05-29 18:48:30 · 498 阅读 · 0 评论 -
python娱乐项目:实现摩斯电码的加解密
今天不知为何有些烦躁,写个程序平静一下:s = input("input the cipher_text or clear_text:") choice = input("encode or decode? [1/0]:") codebook = { 'A':".-", 'B':"-...", 'C':"-.-.", 'D':"-..", 'E':".",原创 2017-07-23 23:36:19 · 2254 阅读 · 1 评论