您将需要在辅助函数中返回值并从主
send_email()函数中调用这些函数,并将返回的值分配给变量。像这样:
def get_email_address(): #the pre to open up a window that gets the email address Email = input return Emaildef get_email_username(): #the pre to open up a window that gets email username Email_Username = input return Email_Username#same for the email recipient and email passworddef send_email(): # variables from the other def's email_address = get_email_address() email_username = get_email_username() #pre to send email



