In PyCharm Community, you can have multiple carets. Press and hold Shift+Alt (on Windows and Linux) / Shift+Alt (on macOS) and then click at different positions to set additional carets in the editor.

Multiple carets

You can then press Shift with the left or right arrow keys to select multiple text fragments.

Multiple selection

Press &shortcut:EditorEscape; to remove all the additional carets but the most recently added one.