Compare commits
6 Commits
118b01e8c4
...
ac260673ae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac260673ae | ||
|
|
85987ca6f1 | ||
|
|
13df3ab71a | ||
|
|
fab0426db6 | ||
|
|
e92c1811db | ||
|
|
87f932a66b |
@@ -39,7 +39,7 @@ chars = '\|/'
|
|||||||
|
|
||||||
def draw(rows, columns):
|
def draw(rows, columns):
|
||||||
for r in rows:
|
for r in rows:
|
||||||
print(''.join(random.choice(chars) for _ in range(columns)))
|
print(''.join(random.choice(chars) for _ in range(columns)))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def create_formatter(name, column_formats=None, upper_headers=False):
|
|||||||
|
|
||||||
if column_formats:
|
if column_formats:
|
||||||
class formatter_cls(ColumnFormatMixin, formatter_cls):
|
class formatter_cls(ColumnFormatMixin, formatter_cls):
|
||||||
formats = column_formats
|
formats = column_formats
|
||||||
|
|
||||||
if upper_headers:
|
if upper_headers:
|
||||||
class formatter_cls(UpperHeadersMixin, formatter_cls):
|
class formatter_cls(UpperHeadersMixin, formatter_cls):
|
||||||
@@ -139,7 +139,7 @@ def create_formatter(name, column_formats=None, upper_headers=False):
|
|||||||
|
|
||||||
if column_formats:
|
if column_formats:
|
||||||
class formatter_cls(ColumnFormatMixin, formatter_cls):
|
class formatter_cls(ColumnFormatMixin, formatter_cls):
|
||||||
formats = column_formats
|
formats = column_formats
|
||||||
|
|
||||||
if upper_headers:
|
if upper_headers:
|
||||||
class formatter_cls(UpperHeadersMixin, formatter_cls):
|
class formatter_cls(UpperHeadersMixin, formatter_cls):
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ exercises.
|
|||||||
|
|
||||||
**A:** You can use [GitHub discussions](https://github.com/dabeaz-course/python-mastery/discussions) to discuss the course.
|
**A:** You can use [GitHub discussions](https://github.com/dabeaz-course/python-mastery/discussions) to discuss the course.
|
||||||
|
|
||||||
**Q: What wasn't topic/tool/library X covered?**
|
**Q: Why wasn't topic/tool/library X covered?**
|
||||||
|
|
||||||
**A:** The course was designed to be completed in an intense 4-day
|
**A:** The course was designed to be completed in an intense 4-day
|
||||||
in-person format. It simply isn't possible to cover absolutely
|
in-person format. It simply isn't possible to cover absolutely
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ chars = '\|/'
|
|||||||
|
|
||||||
def draw(rows, columns):
|
def draw(rows, columns):
|
||||||
for r in range(rows):
|
for r in range(rows):
|
||||||
print(''.join(random.choice(chars) for _ in range(columns)))
|
print(''.join(random.choice(chars) for _ in range(columns)))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
|
|||||||
Reference in New Issue
Block a user