Python URLlib 表单帮助
我正在尝试制作一个程序,该程序将访问 http://mailfreeonline.com/free_anonymous_mail 并向我发送电子邮件。这是我到目前为止所得到的,它说第二个冒号有语法错误?
import urllib
params = urllib.urlencode(
{'tomailget': '[email protected]',
'fromnameget': 'Matt'
'frommailget': '[email protected]'
'subjectget': 'Subject'
'messageget': 'Message' })
f = urllib.urlopen("http://www.mailfreeonline.com/free_anonymous_mail", params)
I am trying to make a program that will access http://mailfreeonline.com/free_anonymous_mail and send me an email. This is what I have so far, it says there is a syntax error with the second colon?
import urllib
params = urllib.urlencode(
{'tomailget': '[email protected]',
'fromnameget': 'Matt'
'frommailget': '[email protected]'
'subjectget': 'Subject'
'messageget': 'Message' })
f = urllib.urlopen("http://www.mailfreeonline.com/free_anonymous_mail", params)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你必须在每个参数后面添加逗号,你忘了这样做
You have to add comma after each parameter, you forgot to do that
我在字典中没有看到元素之间有逗号
I don't see commas between the elements in the dictionary