print ("So, you‘re 5r old, %r tall and %r heavy." % (age, height, weight))
print ("So, you‘re %r old, %r tall and %r heavy." % (age, height, weight)) 说明前后%和后面的参数数量不对应.红色就是错误的地方。
时间: 2024-10-10 16:48:38
print ("So, you‘re 5r old, %r tall and %r heavy." % (age, height, weight))
print ("So, you‘re %r old, %r tall and %r heavy." % (age, height, weight)) 说明前后%和后面的参数数量不对应.红色就是错误的地方。