例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"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-
我正在尝试编写一个函数,它将接受两个对象(在本例中为人员),并且只交换它们的两个属性。this.favoriteColor = favoriteColor;var bob = new Person("5-a, b) { a = b; console.log(a, b);这显然会交换它们的所有属性,但我不知道如何只交
2020 ARI CB NB 33 Active Byron Mu~ Byron Murphy 1998-01-18 5-2020 ARI CB NA 39 Active Jace Whi~ Jace Whittaker 1995-07-16 5-2020 ARI CB NA 27 Injur~ Kevin Pe~ Kevin