Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
re_sit4006/management.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (36 sloc)
1.07 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def management(): | |
from data import check_mail | |
from data import delete_mail | |
from data import write_mail | |
from data import read_the_data_base | |
from data import sender | |
from printers import start | |
from printers import would | |
from printers import would2 | |
from printers import thanks_y | |
from printers import thanks_n | |
from printers import thanks_s | |
from printers import subscribe | |
from printers import subscribe2 | |
c=input(start) | |
if check_mail(c)==True: | |
s=input(would) | |
while s!="y" and s!="Y" and s!="n" and s!="N": | |
s=input(would2) | |
if s=="y"or s=="Y": | |
print(thanks_s) | |
sender(c) | |
elif s=="n"or s=="N": | |
delete_mail(c) | |
print (thanks_n) | |
else: | |
sub=input(subscribe) | |
while sub!="y" and sub!="Y" and sub!="n" and sub!="N": | |
sub=input(subscribe2) | |
if sub=="y"or sub=="Y": | |
print(thanks_y) | |
write_mail(c) | |
sender(c) | |
if sub=="n"or sub=="N": | |
print(thanks_n) | |
read_the_data_base() |