例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"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-
我试图用纯JPA保存一个实体,并且在保存时没有返回Postgres UUID字段。默认情况下,UUID字段使用public.uuid_generate_v1mc()自动生成.我使用postgres作为数据库,由于某种原因,在jpa中进行保存时创建的默认值不会被返回。我尝试过添加一个@Generated字段并将其设置为auto,但这没有任何作用。数据库创建语句( active boolean NOT NULL DEFAULT false,
created time
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