代理测试.py 436 B

123456789101112131415
  1. from urllib import request
  2. import re
  3. import os
  4. print("nihao")
  5. line = "益阳,精锐华府(长春东路/近贺家桥北路),[资阳区-资阳城区]长春东路、近贺家桥北路,6549,元/平米"
  6. splits = line.split(",")
  7. print(str(splits))
  8. address1 = splits[0]
  9. print("splits[2]:" + splits[2])
  10. splits3 = str(splits[2]).split("]", 1)
  11. address2 = splits3[1]
  12. address = address1 + address2
  13. print("address:" + address)
  14. print("结束")