例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"the person is 5 feet 11 inches tall."feet {} inches tall.".format(list[1], list[1]) #I am aware taking the same index of list will give me 5-
所以,我对编码还很陌生,我正在尝试创建一个随机的、基于转弯的战斗系统。然而,我认为我在代码中犯了一个错误。这不是随机的,也不做最后的打击。我找不到错误。", attacker + " attacks " + waiting + " with his sword, but " + waiting + "uses his shield to block.Then chops his head off with his sword."]@Em