2016-03-30 13 views

Antwort

0

Sie str.format() zu diesem Zweck nutzen könnten.

Beispiel:

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

>>> Hello friend! 
>>> Check this out https://google.com 
1
email = "[email protected]" 
"this is my e-mail:{email}".format(
    email=email, 
) 

Ergebnis ist

this is my e-mail:[email protected] 

ist es das, was Sie wollen? Ich brauche mehr Detailbeschreibung

Verwandte Themen