作业一:
整理异常处理博客
整理导入模块与导入包博客
作业二:
创建如下目录结构
keystone/
├── __init__.py
└── auth
├── __init__.py
└── plugins
└── core.py
core.py内容为:
def create(cls, auth_payload, method_name):
pass
class UserAuthInfo:
def __init__(self):
self.password = None
要求一:保证包keystone可以在任意位置被导入
要求二:import keystone,然后就可以直接调用keystone.create和keystone.UserAuthInfo
import os
import sys
base_dir=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
# print(sys.path)
import keystone
keystone.create('1','2','3')
keystone.UserAuthInfo()
作业三:
预习软件开发规范http://www.cnblogs.com/alex3714/articles/5765046.html
开发ATM程序,作业要求http://www.cnblogs.com/alex3714/articles/5765046.html