When I use pycharm and split it doesn't work.(only at pycharm) I don't know how to fix this.
Regression in 2022.1.1 PyCharm, see https://youtrack.jetbrains.com/issue/PY-54238/STDIN-is-lost-for-a-second-input-call
Update to 2022.1.2 RC (release candidate) where the problem is resolved.