* Fix div and mod in SPython * Fix generic type names search in SPython symbol table * Small fixes * Add few checks in Intellisense * Add comments about units compilation order
9 lines
245 B
Plaintext
9 lines
245 B
Plaintext
# Использование кортежей
|
|
|
|
a,b = divmod(-7, 3)
|
|
temp = divmod(-7, 3)
|
|
t: tuple[int, int] = divmod(-7, 3)
|
|
t1: tuple[int] = tuple.Create(0) # из одного эл-та пока так
|
|
|
|
print(a == t.Item1)
|
|
print(b == t.Item2) |