Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sc4599/learn-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
Loading
...
head repository: tanteng/learn-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 3 files changed
  • 2 contributors

Commits on Mar 23, 2016

  1. 修改网址

    tanteng committed Mar 23, 2016
    Configuration menu
    Copy the full SHA
    3e049ad View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2016

  1. 一般情况下,一个函数结束的时候,加一个return在代码上比较美观。可以更清楚的知道代码在哪里结束。

    虽然不加也可以,但是建议加上。这样可以更清楚的知道代码在哪里结束。如果您用过try...except...else...finily结构的话,会明白的
    xiaoxiaoyao committed Apr 19, 2016
    Configuration menu
    Copy the full SHA
    13c3f88 View commit details
    Browse the repository at this point in the history
  2. Merge pull request tanteng#4 from xiaoxiaoyao/patch-1

    函数结尾加return
    tanteng committed Apr 19, 2016
    Configuration menu
    Copy the full SHA
    21240a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2016

  1. Update README.md

    tanteng committed Apr 22, 2016
    Configuration menu
    Copy the full SHA
    8255a5e View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2016

  1. python中的闭包 for python 3.x

    UnboundLocalError: local variable 'count' referenced before assignment.
    
    什么意思?就是说conut这个变量你没有定义就直接引用了,我不知道这是个什么东西,程序就崩溃了.于是,再python3里面,引入了一个关键字:nonlocal,这个关键字是干什么的?就是告诉python程序,我的这个count变量是再外部定义的,你去外面找吧.然后python就去外层函数找,然后就找到了count=0这个定义和赋值,程序就能正常执行了.
    xiaoxiaoyao committed Apr 25, 2016
    Configuration menu
    Copy the full SHA
    6347e16 View commit details
    Browse the repository at this point in the history
  2. Merge pull request tanteng#5 from xiaoxiaoyao/patch-1

    python中的闭包 for python 3.x
    tanteng committed Apr 25, 2016
    Configuration menu
    Copy the full SHA
    069ad97 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.