【发布时间】:2024-05-17 18:25:02
【问题描述】:
在我的代码中,我试图让用户登录并检索一些信息,但我的变量用户和密码出现语法错误。粗体字在代码中被注释掉
import urllib.request
import time
import pycurl
#Log in
user = input('Please enter your EoBot.com email: ')
password = input('Please enter your password: ')
#gets user ID number
c = pycurl.Curl()
#Error below this line with "user" and "password"
c.setopt(c.URL, "https://www.eobot.com/api.aspx?email="user"&password="password")
c.perform()
【问题讨论】:
标签: python variables url syntax pycurl