How to accept Japanese input on the terminal

When using Python and inputting Japanese with the input function, the Japanese will be converted if executed in the terminal inside the cursor.

If you copy and paste, it can be executed without being converted, but if you type with the enter key, the string will be converted to something else.

I haven’t had any problems like this with VSC.
Is it possible to deal with this by rewriting the json file?

M1mac terminal zsh