1 #!usr/bin/env python 2 #-*-coding:utf-8-*- 3 # Author calmyan 4 import os ,sys,time 5 6 from core import transaction #包含记账还钱取现等所有的与账户金额相关的操作 7 from core import user_pass #用户名检测相关 8 from core import log_file #日志相关 9 10 11 def login():#开始函数 12 # time_format='%y-%m-%d %X'#定义时间格式 13 # times=time.strftime(time_format)#定义时间 14 print("Welcome to python ATM".center(60,'*')) 15 while True: 16 print('''================================================ 17 1 >>>> 用户登陆. 18 2 >>>> 直接退出. 19 ================================================ 20 ''') 21 22 foo=input('请选择您要的操作:') 23 if foo=='1': 24 _user_name= user_pass.user_pass()#将通过验证的用户名赋于变量 25 data=transaction.user_info(_user_name)#调用帐户查询函数 26 if data['状态']: 27 print('