From 2002b5d46eb4988f09a93f937d2a4a87e96983cf Mon Sep 17 00:00:00 2001 From: Adam Jurkiewicz Pythonista Local Date: Wed, 17 Dec 2025 11:35:41 +0100 Subject: [PATCH] zmiany --- .gitignore | 1 + dzien_03/przyklady/simple_md.py | 6 +----- dzien_03/skrypt_01.py | 5 +++++ dzien_03/skrypt_02.py | 5 +++++ dzien_03/skrypt_03.py | 5 +++++ simple_md_file.md | 26 ++++++++++++++++++++++++++ 6 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 dzien_03/skrypt_01.py create mode 100644 dzien_03/skrypt_02.py create mode 100644 dzien_03/skrypt_03.py create mode 100644 simple_md_file.md diff --git a/.gitignore b/.gitignore index 36b13f1..0d2150a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ __pycache__/ # Distribution / packaging .Python build/ +virtual/ develop-eggs/ dist/ downloads/ diff --git a/dzien_03/przyklady/simple_md.py b/dzien_03/przyklady/simple_md.py index 5332e14..51a60cf 100644 --- a/dzien_03/przyklady/simple_md.py +++ b/dzien_03/przyklady/simple_md.py @@ -1,10 +1,6 @@ """ Prosty skrypt generujący plik w formacie Markdown https://www.markdownguide.org/basic-syntax/ -wymagane -plik dane_sprzedazowe.csv -pip install snakemd pandas - """ import subprocess # wywoływanie poleceń systemowych !!! @@ -13,7 +9,7 @@ from snakemd import Paragraph, InlineText import pandas as pd -df = pd.read_csv("dane_sprzedazowe.csv", sep=";") +df = pd.read_csv("/home/adasiek/Nextcloud/05_SZKOLENIA/10_COMARCH/20251215_Python_Nieprogramisci/2025_12_15_python/dzien_03/przyklady/dane_sprzedazowe.csv", sep=";") print(df) doc = snakemd.new_doc("simple_md_file") diff --git a/dzien_03/skrypt_01.py b/dzien_03/skrypt_01.py new file mode 100644 index 0000000..816f267 --- /dev/null +++ b/dzien_03/skrypt_01.py @@ -0,0 +1,5 @@ +# generowanie danych jako secrets +import secrets as ss + +print(ss.token_urlsafe(20)) +print(ss.token_hex(20)) \ No newline at end of file diff --git a/dzien_03/skrypt_02.py b/dzien_03/skrypt_02.py new file mode 100644 index 0000000..4b7cd7e --- /dev/null +++ b/dzien_03/skrypt_02.py @@ -0,0 +1,5 @@ + +wys_p = float(input("Podaj wysokość: ")) +pre_p = float(input("Podaj prędkość: ")) + +print(f"{wys_p=} {pre_p=}") \ No newline at end of file diff --git a/dzien_03/skrypt_03.py b/dzien_03/skrypt_03.py new file mode 100644 index 0000000..4b7cd7e --- /dev/null +++ b/dzien_03/skrypt_03.py @@ -0,0 +1,5 @@ + +wys_p = float(input("Podaj wysokość: ")) +pre_p = float(input("Podaj prędkość: ")) + +print(f"{wys_p=} {pre_p=}") \ No newline at end of file diff --git a/simple_md_file.md b/simple_md_file.md new file mode 100644 index 0000000..f31bc9a --- /dev/null +++ b/simple_md_file.md @@ -0,0 +1,26 @@ +### To będzie tytuł + +Dzisiaj tworzymy dokument w MD + +--- + +To jest długi tekst, może mieć wiele linijek.... I jest identyczny z tym, co piszemy ;-) + +--- + +*Test DataFrame* + +| **Rok** | ~~Sprzedaż kart 5GB~~ | *Sprzedaż Abonamentów* | Światłowody | +| ------- | --------------------- | ---------------------- | ----------- | +| 2010 | 8666552 | 10 | 0 | +| 2011 | 9322485 | 100 | 24 | +| 2012 | 9567063 | 857481 | 2861774 | +| 2013 | 10669879 | 344566 | 2826412 | +| 2014 | 10574539 | 1703743 | 3238064 | +| 2015 | 11186688 | 2589286 | 3687885 | +| 2016 | 12795356 | 2859191 | 3986410 | +| 2017 | 15730330 | 2931503 | 4601982 | +| 2018 | 17737231 | 3080699 | 4966949 | +| 2019 | 18844591 | 3104277 | 5361134 | +| 2020 | 5473224 | 870831 | 1697406 | +| 2021 | 7445468 | 1455315 | 2140522 | \ No newline at end of file