问题 When I call t.pencolor('83, 58, 27') (turtle is imported as t) I get the TurtleGraphicsError: bad color string: 83, 58, 27 even though I have (I think) changed my colour mode. t.colormode(255) t.pencolor('83, 58, 27') I run python 2.7 on OS 10.9 回答1: You are passing in a string with three colors, where you need to pass the three colors as three separate integer arguments, like this: t.pencolor(83, 58, 27) There are multiple ways to use pencolor , from the documentation: Four input formats are