4 ms·
You can't concatenate a path with an integer: >>> Path.cwd() / 1 TypeError: argument should be a path or str object, not <class 'int'> Also, note that the
by latte 9y ago
You can't concatenate a path with an integer:
>>> Path.cwd() / 1
TypeError: argument should be a path or str object, not <class 'int'>
Also, note that the '/' operator is left-associative, so even if you have two adjacent numbers when joining paths, there will be no division.