下面是一个实现该功能的python代码:
def extract_data(document):
x_list = []
y_list = []
r_list = []for line in document.splitlines():
parts = line.split()
x = int(parts[0].split(':')[1])
y = int(parts[1].split(':')[1])
r = int(parts[2].split(':')[1])
x_list.append(x)
y_list.append(y)
r_list.append(r)
return x_list, y_list, r_list