【发布时间】:2015-11-16 22:28:25
【问题描述】:
print ("He's got %s eyes and %s hair.\n\
His teeth are usually %s depending on the coffe.\n\
if I add %d, %d, and %d I get %d." % (
my_eyes, my_hair, my_age, my_teeth,
my_height, my_weight, my_age + my_height + my_weight))
错误:格式字符串的参数不足
【问题讨论】:
-
print ("他有 %s 的眼睛和 %s 的头发。\n\ ` 根据咖啡的不同,他的牙齿通常是 %s。\n\ 如果我加上 %d、%d 和 % d 我得到 %d。" %(my_eyes, my_hair, my_age, my_teeth, my_height, my_weight, my_age + my_height + my_weight)))
-
请重新格式化您的问题,说明您使用的语言以及遇到的错误。
-
对此我很抱歉。