Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 45ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
GGORG

GGORG

Joined 2 years ago

All gists 13
Recently created Least recently created Recently updated Least recently updated
GGORG

GGORG / 19.11.2024 - rysowanie pętlami na obrazkach

Last active 3 months ago

Zadanie domowe: program rysujący ślimaka

1 0 2
1 # Podstawowe importy
2 import numpy as np
3 import matplotlib.pyplot as plt
4 import matplotlib.image as im
5
6
7 # Tworzy tablice zer o wymiarach 5x8
8 tab = np.zeros((5,8))
9
10 # nrows = liczba wierszy, ncols = liczba kolumn (rozpakowywanie krotki)
GGORG

GGORG / Podstawa numpy + matplotlib

Last active 3 months ago

Pokazuje tablicę zer 5x8 jako obrazek

1 0 1
1 import numpy as np
2 import matplotlib.pyplot as plt
3 import matplotlib.image as im
4
5
6 tab = np.zeros((5,8))
7
8 plt.imshow(tab)
9 plt.show()
GGORG

GGORG / Słowniki

Last active 3 months ago
1 0 1
1 pow = {'Wrocław': 293,
2 'Warszawa': 517,
3 'Radom': 112,
4 'Paryż': 105,
5 'Stolec': 1,
6 'Meksyk': 1485,
7 'Swornegacie': 2,
8 'Poznań': 262
9 }
10
Newer Older