Python
Python copied to clipboard
最良心的 Python 教程:
‘面向对象 > 类方法’ 章节中,@classmethod 的拼写错误修复
官方文档对文档字符串的描述和示例对其要求是第二行空一行,主注释和辅注释隔离开 例如官方示例: >>> def my_function(): ... """Do nothing, but document it. ... ... No, really, it doesn't do anything. ... """ ... pass ... >>> print(my_function.__doc__) Do nothing, but document...
元组
元组里有个遍历的代码,是不是笔误呢 ` for x in (1, 2, 3): print x, -- `
修改笔误:将list写做lsit
Row 435 missing one '
thank you
```python class Bank(): ``` this example when you are using python3, you need use print(corner_street_atm.__next__()) or print(next(corner_street_atm))
Say " When some files are inserted to the new directory old files should get deleted from the new directory by using the python program?" I can only move the...
拼写纠正:`lsit`更正为`list`