基础DAY12-包

from . import send_message
from . import receive_message
__init__
def receive():
    return "这是来自100xx的短信"
receive_message
def send(text):
    print("正在发送%s" % text)
send_message
import hm_message
hm_message.send_message.send("123")

test = hm_message.receive_message.receive()
print(test)


正在发送123
这是来自100xx的短信
hm_10_导入包

 

posted @ 2019-08-26 19:47  才华配得上梦想  阅读(78)  评论(0编辑  收藏  举报