This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Python Prime Sieve | |
MyFirstPython Program (tm) Dave Plummer 8/9/2018 | |
This is the main prime_sieve class. Call it with the number you wish as an upper limit, then | |
call the run method to do the calculation. print_results will dump the count to check validity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This program find files by following pattern: | |
> dog000001.txt | |
> cat000054.txt | |
> lion010101.txt | |
> mouse123456.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://pastebin.com/raw/dxUqR7RH | |
https://www.facebook.com/groups/PythonUserDeutschland/?multi_permalinks=2079508368861796¬if_id=1585918939113861¬if_t=group_highlights&ref=notif | |
""" | |
import csv | |
from contextlib import contextmanager | |
from datetime import datetime | |
import ratelimit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Das Programm lädt ein Wörterbuch herunter. | |
Alle Wörter mit 6 Zeichen und der Summe 66 werden ausgegeben | |
""" | |
import os | |
import sys | |
from argparse import ArgumentParser | |
from contextlib import contextmanager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Delete everything, pictures are excluded. | |
""" | |
from argparse import ArgumentParser | |
from pathlib import Path | |
from textwrap import dedent | |
from PIL import Image, UnidentifiedImageError | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Delete everything, pictures are excluded. | |
""" | |
from argparse import ArgumentParser | |
from pathlib import Path | |
from textwrap import dedent | |
LOSS_LESS_FORMATS = ( |