Browse Source

Attributes example

pull/7/head
Jure Šorn 6 years ago
parent
commit
feaa49b07d
1 changed files with 4 additions and 4 deletions
  1. 8
      README.md

8
README.md

@ -981,8 +981,8 @@ Introspection and Metaprograming
```python ```python
>>> class Z: >>> class Z:
... def __init__(self): ... def __init__(self):
... self.a = 'abcde' ... self.a = 'abcde'
... self.b = 12345 ... self.b = 12345
>>> z = Z() >>> z = Z()
``` ```
@ -1414,7 +1414,7 @@ Basic Script Template
```python ```python
#!/usr/bin/env python3 #!/usr/bin/env python3
# #
# Usage: .py # Usage: .py
# #
from collections import namedtuple from collections import namedtuple
@ -1425,7 +1425,7 @@ import sys
def main(): def main():
pass pass
### ###
## UTIL ## UTIL

|||||||
100:0
Loading…
Cancel
Save