Изменил(а) на 'TEMA7/report.md'

main
BerezhkovDA 7 дней назад
Родитель 315f50e9e5
Сommit b8c88b4441

@ -142,13 +142,13 @@ Help on function uspeh in module \_\_main\_\_:
Traceback (most recent call last):
&nbsp; File "<pyshell#29>", line 1, in <module>
File "<pyshell#29>", line 1, in <module>
&nbsp; slozh({"A" : 1, "B" : 2}, {"C" : 3, "D" : 4}, {"E" : 5, "F" : 6}, {"G" : 7, "H" : 8}) # Сложение словарей
slozh({"A" : 1, "B" : 2}, {"C" : 3, "D" : 4}, {"E" : 5, "F" : 6}, {"G" : 7, "H" : 8}) # Сложение словарей
&nbsp; File "<pyshell#21>", line 3, in slozh
File "<pyshell#21>", line 3, in slozh
&nbsp; return a1+a2+a3+a4
return a1+a2+a3+a4
TypeError: unsupported operand type(s) for +: 'dict' and 'dict'
@ -156,13 +156,13 @@ TypeError: unsupported operand type(s) for +: 'dict' and 'dict'
Traceback (most recent call last):
&nbsp; File "<pyshell#30>", line 1, in <module>
File "<pyshell#30>", line 1, in <module>
&nbsp; slozh({1, 2}, {3, 4}, {5, 6}, {7, 8}) # Сложение множеств
slozh({1, 2}, {3, 4}, {5, 6}, {7, 8}) # Сложение множеств
&nbsp; File "<pyshell#21>", line 3, in slozh
File "<pyshell#21>", line 3, in slozh
&nbsp; return a1+a2+a3+a4
return a1+a2+a3+a4
TypeError: unsupported operand type(s) for +: 'set' and 'set'
@ -257,14 +257,13 @@ Help on function inerz in module \_\_main\_\_:
inerz(x, T, ypred)
Модель устройства с памятью:
&nbsp; Модель устройства с памятью:
x- текущее значение вх.сигнала,
&nbsp; x- текущее значение вх.сигнала,
T -постоянная времени,
&nbsp; T -постоянная времени,
&nbsp; ypred - предыдущее значение выхода устройства
ypred - предыдущее значение выхода устройства
```
@ -524,13 +523,13 @@ inerz(x, T, ypred)
Traceback (most recent call last):
&nbsp; File "<pyshell#90>", line 1, in <module>
File "<pyshell#90>", line 1, in <module>
&nbsp; func2(kort)
func2(kort)
&nbsp; File "<pyshell#86>", line 2, in func2
File "<pyshell#86>", line 2, in func2
&nbsp; sps[1]=99
sps[1]=99
TypeError: 'tuple' object does not support item assignment
@ -624,9 +623,9 @@ lambda \[<Список аргументов >]: <Возвращаемое зна
Traceback (most recent call last):
&nbsp; File "<pyshell#106>", line 1, in <module>
File "<pyshell#106>", line 1, in <module>
&nbsp; print(alp.\_\_next\_\_())
print(alp.\_\_next\_\_())
StopIteration
@ -684,13 +683,13 @@ StopIteration
Traceback (most recent call last):
&nbsp; File "<pyshell#114>", line 1, in <module>
File "<pyshell#114>", line 1, in <module>
&nbsp; res=func8(glb)
res=func8(glb)
&nbsp; File "<pyshell#113>", line 3, in func8
File "<pyshell#113>", line 3, in func8
&nbsp; print(glb)
print(glb)
UnboundLocalError: cannot access local variable 'glb' where it is not associated with a value

Загрузка…
Отмена
Сохранить