我有一个完美打印变量(由用户设置)的脚本。
os.system('clear')
print "Motion Detection Started"
print "------------------------"
print "Pixel Threshold (How much) = " + str(threshold)
print "Sensitivity (changed Pixels) = " + str(sensitivity)
print "File Path for Image Save = " + filepath
print "---------- Motion Capture File Activity --------------"
我现在希望将此代码通过电子邮件发送给自己以在运行时进行确认。email.mimieText
我已使用和包含在脚本电子邮件中multipart
。但是输出不再只显示代码的相对变量。
body = """ Motion Detection Started \n Pixel Threshold (How much) = " + str(threshold) \n Sensitivity (changed Pixels) = " + str(sensitivity) \n File Path for Image Save = " + filepath """
我确定它是“””包装器,但不清楚我应该使用什么?