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

Sign up
Appearance settings

Commit d08d2da

Browse files
committed
Lecture 9 and 10
1 parent c14b78d commit d08d2da

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

‎Lecture10.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ class Employee:
288288
def work(self):
289289
print(f'{self.name} pracuje.')
290290
def __repr__(self):
291-
return f'Pracownik: {self.name}, wynagrodzenie: {self.salary}'
291+
return f'Pracownik: {self.name},
292+
wynagrodzenie: {self.salary}'
292293
```
293294

294295

‎Lecture10.pdf‎

184 KB
Binary file not shown.

‎Lecture9.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class Person:
5353
```python
5454
if __name__ == '__main__':
5555
bob = Person('Robert Zielony')
56-
anna = Person('Anna Czerwona', job='Programista', pay=10**12)
56+
anna = Person('Anna Czerwona',
57+
job='Programista', pay=10**12)
5758
print(bob.name, bob.pay)
5859
print(anna.name, anna.pay)
5960
```
@@ -221,7 +222,8 @@ class AttrDisplay:
221222
attrs.append(f'{key}: {getattr(self, key)}')
222223
return '\n'.join(attrs)
223224
def __str__(self):
224-
return '{0}\n{1}'.format(self.__class__.__name__, self.gather_attrs())
225+
return '{0}\n{1}'.format(self.__class__.__name__,
226+
self.gather_attrs())
225227
```
226228

227229

@@ -337,4 +339,4 @@ class Super(metaclass=ABCMeta):
337339
@abstractmethod
338340
def action(self):
339341
pass
340-
```
342+
```

‎Lecture9.pdf‎

171 KB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /