Browse Source

String, class

pull/3/head
Jure Šorn 6 years ago
parent
commit
d16bfa5b6d
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -163,7 +163,7 @@ isinstance(<el>, numbers.Number) # Integral, Real, Rational, Complex
String
------
```python
str.replace(text, old, new)
<str>.replace(old_str, new_str)
<str>.split(sep=None, maxsplit=-1)
<str>.strip()
<str>.join(<list>)
@ -417,7 +417,7 @@ class <name>:
self.a = a
def __repr__(self):
return str({'a': self.a})
# Use f'{s.__dict__}' for all members.
# Use f'{s.__dict__}' for all members.
def __str__(self):
return str(self.a)
```

Loading…
Cancel
Save