# 获取订单编号order = driver.find_elements_by_xpath('//div[@class="goods-list"]/div')[1]order_num = order.textprint(order_num)# 提取订单编号number = re.split('订单编号:',order_num)[1]print(number)