string/int 中玩游戏的人可以输入的数据类型有哪些不同类型 python。 (我正在使用 pycharm)

What are different types of string/int as in data types that can be input by the person playing a game in python. (I am using pycharm)

玩游戏的用户如何输入整型数据?我尝试了很多东西,但它们不起作用。我试过输入数字,但它们仍然是字符串而不是整数。

在python3中使用:

x = int(input(3))

并在 python2 中使用:

input(3)