작성
·
227
0
집합자료활용 코딩을 했는데
set에는 &, |, issubset 같은 함수를 쓸 수 없다고 하네요.
Traceback (most recent call last):
File "d:\test\chapter03_06.py", line 45, in <module>
print('s1 & s2:', s1 & s2)
~~~^~~~
TypeError: unsupported operand type(s) for &: 'types.GenericAlias' and 'types.GenericAlias'