我有这个代码:
guess = list()
playerNumber = raw_input
('Please enter a four digit number for which all the digits are different.')
p = str(playerNumber)
guess = [int(p[0]),int(p[1]),int(p[2]),int(p[3])]
我正在尝试将用户给出的四位数字的原始输入转换为单个整数的列表。我的代码不起作用。我怎样才能做到这一点?