2023-11-12 16:58:39 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import pyperclip
|
|
|
|
|
|
|
|
width = int(input("Width: "))
|
|
|
|
height = int(input("Height: "))
|
|
|
|
|
|
|
|
print("[")
|
|
|
|
|
|
|
|
matrix_str = "[\n"
|
|
|
|
|
|
|
|
for bla in range(height):
|
|
|
|
line = []
|
|
|
|
|
|
|
|
for bla in range(width):
|
|
|
|
line.append(0)
|
|
|
|
|
2023-11-12 17:04:46 +01:00
|
|
|
matrix_str += str(line) + ",\n"
|
2023-11-12 16:58:39 +01:00
|
|
|
|
2023-11-12 17:04:46 +01:00
|
|
|
print(str(line) + ",")
|
2023-11-12 16:58:39 +01:00
|
|
|
|
|
|
|
print("]")
|
|
|
|
|
|
|
|
matrix_str += "]"
|
|
|
|
pyperclip.copy(matrix_str)
|