#python 2.7
from splinter import Browser
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('disable-infobars')
browser = Browser("chrome")
browser.visit('http://XXXXX')
browser.fill('选择器', 'XXXX')
browser.find_by_id('选择器').fill('XXX')
verifycode = raw_input("Enter your verifycode: "); #python3.0里raw_input写作input
browser.find_by_id('captcha').fill(verifycode)
button = browser.find_by_tag('span')
button.click()
#six模块 是专门用于支持python2.0 、3.0兼容的库