Extrahieren Sie Werte aus einer Excel-Tabelle

Ich möchte einige Wörter aus einer Liste entfernen. Ich habe eine Liste mit einem wiederkehrenden Wort und ich möchte es loswerden und ich habe keine Ahnung. Ich weiß nicht, ob ich eine ganze Schleife oder Regex verwenden muss.

from xlrd import open_workbook,error_text_from_code

book = open_workbook(inp)

sheet0 = book.sheet_by_index(0)

x = 0
y = 0
countr = sheet0.nrows
countc = sheet0.ncols
names = ''
variables = []
"different variables-----------------"
while x < countr -1:
     x = x+1
     y = y+1
     cell = sheet0.cell(y,0)

names = names+ str(cell)
cell = sheet0.cell(y,1)

variables.append(cell)

country_text = names
countries = ', '.join(re.findall("('.*?')", country_text))
countries = countries.split()

print (variables)
print (countries)

Was ich bekomme:

[number:150000.0, number:140000.0, number:300000.0]

und ich brauche

[150000, 140000, 300000] 

Antworten auf die Frage(1)

Ihre Antwort auf die Frage