我有一个专栏,看起来是这样的:
19E071OE1 [OO 2019] P1
我只想打印[]中的部分,因此输出如下:
OO 2019
发布于 2021-01-14 21:58:43
print(('19E071OE1 [OO 2019] P1').split('[')[1].split(']')[0])
https://stackoverflow.com/questions/65727453
相似问题