案例:三個人做專案開發
# 案例:三個人做專案開發
# test1,業務邏輯開發
# test2 發簡訊訊息
# test3 發wechat訊息
傳統的實現
def run():
from utils import sms,wechat
msg = "cpu報警了"
sms.send(msg)
wechat.send(msg)
if __name__ == ("__main__"):
run()
案例:三個人做專案開發
# 案例:三個人做專案開發
# test1,業務邏輯開發
# test2 發簡訊訊息
# test3 發wechat訊息
def run():
from utils import sms,wechat
msg = "cpu報警了"
sms.send(msg)
wechat.send(msg)
if __name__ == ("__main__"):
run()