This commit is contained in:
2026-03-18 10:05:38 +01:00
parent 36c697860a
commit c6e2cec50e
9 changed files with 38 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
from exif import Image
print(f"Przestrzeń 1: {__name__}")
# otwarcie pliku
def fn_file(file_name):
try:
@@ -31,12 +34,13 @@ def get_exif(image):
print(fn_file("images/IMG_123311x.jpg"))
if __name__ == "__main__":
print(fn_file("images/IMG_123311x.jpg"))
ok = fn_file("IMG_1233.jpg")
if ok:
if file_ok(ok):
print(get_exif(ok))
ok = fn_file("IMG_1233.jpg")
if ok:
if file_ok(ok):
print(get_exif(ok))
print(fn_file("to-do.md"))
print(fn_file("to-do.md"))

24
dzien_02/d_06_import.py Normal file
View File

@@ -0,0 +1,24 @@
from d_05_exif import *
import os
print(f"Przestrzeń 2: {__name__}")
print('zaimportowano')
directory = "testy_os"
for dirpath, dirname, files in os.walk(directory):
print(dirpath)
print(dirname)
print(files)
print('------------')
if files:
for every_file in files:
file_name = os.path.join(dirpath, every_file)
print(file_name)
ok = fn_file(file_name)
if ok:
if file_ok(ok):
print(get_exif(ok))
# for ind, val in enumerate([2,33,34,33,5,4]):
# print(f"element nr {ind}: {val}")

4
dzien_02/d_07_import.py Normal file
View File

@@ -0,0 +1,4 @@
from d_06_import import *
print(f"Przestrzeń 3: {__name__}")
print('zaimportowano w 3')

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB