Coder Social home page Coder Social logo

exercise's Introduction

exercise_python

完成show-me-the-code 的python练手小项目

  • 01:给头像右上角添加红色数字,使用了pillow
  • 02:生成200个激活码(或优惠券)参考用 Python 生成随机的邀请码
  • 03:将优惠券保存到mysql关系型数据库中,使用了pymysql
  • 04:将优惠券保存到Redis非关系型数据库中,安装redis使用redis-py操作库
  • 05:在一个英文文本文件中搜索指定单词的个数
  • 06:将一个目录下的多张照片,把它们的尺寸变成都不大于指定手机屏幕分辨率的大小,同01使用了pillow来实现
  • 07:假设内容都是英文,请统计出你认为每篇日记最重要的词。实现思路参考自这里
  • 08:统计代码行数
  • 09:查找网页中正文的内容(查找链接类似),使用了BeautifulSoup对网页内容进行解析
  • 10:创建验证码图片
  • 11:实现关键字过滤功能,.strip()的作用是去掉前后的空格
  • 12:查找关键词并用*替换
  • 13:爬取百度贴吧的帖子我看过整片银河,却只爱一颗星里面的美女图片
  • 14:将文本信息写入到excel表格中,使用了openpyxl
  • 15:将数据excel表格中的数据写入到xml文件中,通过minidom来生成xml格式数据
  • 16:对数据进行加密处理,通过 hashlib来实现

exercise's People

Stargazers

码哥说 avatar

Watchers

likui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.