Search
a = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]
[[0]*len(a[0]) for i in a]
import time time.sleep(0.5)
''.join('X' if i!=0 else ' ' for i in x))
m=[[12,-7,3, 26], [4 ,5,-6, -5], [-7 ,8,9, 21]]
mm = [list(map(Fraction, v)) for v in m]
result = [list(map(Fraction, v)) for v in mm]
Vstup:
1 2 -2 0.0 10.0
Výstup:
-556.666666667
sys.argv[1]
python3 odd.py rectangle.txt
Matice rectangle.txt:
1 9 2 8 6 1 8 1 11 7 6 4 10 12 1 9 12 14 8 10 3 5 17 8 6 4 10 13 16 19
6 1, 2 3, 3