例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"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-
我正在构建一个函数,它将把我的用户所做的事情添加到我的数据库中,以便我可以为其他用户的活动提要构建一个活动提要。活动表示例输入2 | 1 | follow | 2 | 1333906159 // 2 being the id of a user
通过这种方式,我可以轻松地为用户活动从数据库中提取信息,然后根据用