Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用python脚本添加超链接?_Python - Fatal编程技术网

如何使用python脚本添加超链接?

如何使用python脚本添加超链接?,python,Python,我正在尝试向通过python send mail发送的电子邮件添加超链接。我想在废话后面加一个链接。提前谢谢 以下是我到目前为止的情况: 您可以将其用于此目的 例如: link = 'https://google.com' mymail = 'Hello friend!\nCheck this out {}'.format(link) print mymail >>> Hello friend! >>> Check this out https://goog

我正在尝试向通过python send mail发送的电子邮件添加超链接。我想在废话后面加一个链接。提前谢谢

以下是我到目前为止的情况:

您可以将其用于此目的

例如:

link = 'https://google.com'
mymail = 'Hello friend!\nCheck this out {}'.format(link)
print mymail

>>> Hello friend!
>>> Check this out https://google.com
结果是

this is my e-mail:test@gmail.com
这是你想要的吗?
我需要更详细的描述

将代码作为文本放在这里。
this is my e-mail:test@gmail.com