from time import sleep
from selenium import webdriver
fd=webdriver.Chrome()
fd.get('https://accounts.douban.com/passport/login')
sleep(2)
fd.find_element_by_xpath('//*[@id="account"]/div[2]/div[2]/div/div[1]/ul[1]/li[2]').click()
sleep(2)
fd.find_element_by_id('username').send_keys('18356951757')#自动输入账号
fd.find_element_by_id('password').send_keys('zxc14789')#密码
fd.find_element_by_xpath('//*[@id="account"]/div[2]/div[2]/div/div[2]/div[1]/div[4]/a').click()
sleep(4)
# fd.quit()