Esempio n. 1
0
# import mypack.games.contra as con
# from mypack.games.contra import play
#
# play()
# con.play()
from mypack.games import contra

contra.play()
contra.gameover()

Esempio n. 2
0
# test_mypack_relative_import.py

import mypack.games.contra as c

c.gameover()



Esempio n. 3
0
#此程序示例包的相对导入

import mypack.games.contra as game1

game1.gameover()