Код: Выделить всё
from pathlib import Path
Desktop = Path('Desktop')
SubDeskTop = Desktop + "/subdir"
Код: Выделить всё
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
1 from pathlib import Path
2 Desktop = Path('Desktop')
----> 3 SubDeskTop = Desktop+"/subdir"
TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'