Merge old branches to refactor due to merge it with master #22

Merged
s481825 merged 20 commits from tree into refactor 2024-06-04 11:36:14 +02:00
2 changed files with 9304 additions and 1 deletions
Showing only changes of commit 7c7a485d6b - Show all commits

File diff suppressed because it is too large Load Diff

87
treeData.py Normal file
View File

@ -0,0 +1,87 @@
tab = []
def iter(odp, i):
if i == 0:
j = ""
for k in range(0, 101, 28):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 1:
j = ""
for k in range(0, 101, 28):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 2:
j = ""
for k in range(2):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 3:
j = ""
for k in range(0, 101, 34):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 4:
j = ""
for k in range(0, 101, 40):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 5:
j = ""
for k in range(0, 4, 2):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 6:
j = ""
for k in range(0, 4, 2):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 7:
j = ""
for k in range(0, 4, 2):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 8:
j=""
for k in range(4):
odp += f"{k},"
odp = iter(odp, i + 1)
j = str(k)
odp = odp[:-(len(j) + 1)]
return odp
if i == 9:
global licznik
x = odp.split(",")
if (int(x[0]) > 60 or int(x[1]) > 90 or int(x[2]) == 1 or int(x[3]) > 70 or int(x[4]) <= 10 or int(x[5]) == 0 or int(x[5]) == 4 or int(x[6]) == 2 or int(x[6]) == 3 or int(x[7]) == 0 or int(x[8]) == 1):
odp += "0"
else:
odp += "1"
print(odp)
tab.append(odp)
licznik += 1
return odp[:-1]
iter("", 0)