GithubHelp home page GithubHelp logo

jackpopc / advance-python Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 12.0 15 KB

Python Advanced Tutorial.

Home Page: https://github.com/Jackpopc/advance-python

Jupyter Notebook 100.00%
advance-python python decorators singleton-pattern

advance-python's Introduction

Welcome to advance-python 👋

本工程旨在讲解一些进阶Python相关知识,前不过多赘述Python基本语法知识,例如列表、循环条件语句、文本读取等,本工程假定你具备一定python的基础知识讲解一些使用技巧和进阶知识。

Usage

项目使用jupyter notebook进行开发,它是一款交互式,支持富文本的在线IDE,比较有利于阐述和讲解。

安装jupyter notebook

pip install jupyter notebook

然后它会在默认浏览器打开,你可以点击右上角的upload上传并打开项目中的ipynb格式的文件。

Run tests

python ./code/*.py

Author

👤 Jackpop

Show your support

Give a ⭐️ if this project helped you!

advance-python's People

Contributors

jackpopc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

advance-python's Issues

你好,看了这个抽象基类的代码,想请教个问题

抽象基类总的来说和接口类似,是一个“不完整的”类,因为其内部可以有已经实现的方法,也有需要子类重新写的方法。但是我也可以定义一个父类,在父类中定义一个方法,但是只是定义,然后在方法中使用如下代码抛出异常,当子类中没有定义该方法的时候就会报错,提示子类中必须提供该方法,这种和抽象基类的应用是否存在冲突呢?或者说是都能实现,只是方式不同罢了?

raise NotImplementedError(
'subclasses of SiteBase must provide an find() method')

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.