connie_tong

导航

 

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

posted on 2021-11-12 12:14  connie_tong  阅读(182)  评论(0编辑  收藏  举报