Coder Social home page Coder Social logo

Comments (6)

qiwsir avatar qiwsir commented on June 23, 2024

all_users是不是已经存在的变量?不是赋值。

2015-08-24 22:13 GMT+08:00 wanghaisheng [email protected]:


在109-113.md中大量出现了如下的情况,是笔误还是有意为之,望解答

all_users
['python', 'http://', 'qiwsir', 'github', 'io', 'algorithm']

为什么不是

all_users =
['python', 'http://', 'qiwsir', 'github', 'io', 'algorithm']


Reply to this email directly or view it on GitHub
https://github.com/qiwsir/StarterLearningPython/issues/23.

QiWei

from starterlearningpython.

wanghaisheng avatar wanghaisheng commented on June 23, 2024

@qiwsir 比如109.md 最后一个示例中的b 112.md中的第一个例子中的la

from starterlearningpython.

qiwsir avatar qiwsir commented on June 23, 2024

109.md中的最后一个示例中的b,已经在前面做了赋值 b=a.title()

from starterlearningpython.

wanghaisheng avatar wanghaisheng commented on June 23, 2024

如果你指的是

>>> b = a.title()     #这样就把所有单词的第一个字母转化为大写
>>> b
'This Is A Book'

那最后的例子里你写的是

>>> b
'www.itdiffer.com'

from starterlearningpython.

qiwsir avatar qiwsir commented on June 23, 2024

因为我在写教程的过程中,中间要做调试。所以,变量值会变化。为了说明后面操作的变量值是什么,我一般要在示例开始,把已经有的变量值显示出来,比如你刚才说的>>>b,这样主要是告诉读者,现在b的变量值已经是什么了。至于如何来的,一般就比较简单,不用赘述了。

2015-08-25 13:58 GMT+08:00 wanghaisheng [email protected]:

如果你指的是

b = a.title() #这样就把所有单词的第一个字母转化为大写
b
'This Is A Book'

那最后的例子里你写的是

b
'www.itdiffer.com'


Reply to this email directly or view it on GitHub
https://github.com/qiwsir/StarterLearningPython/issues/23#issuecomment-134489405
.

QiWei

from starterlearningpython.

wanghaisheng avatar wanghaisheng commented on June 23, 2024

这样说就易于理解了,如果不追求严谨的话

from starterlearningpython.

Related Issues (20)

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.