728x90
import code
def interactive_function():
# ์คํฌ๋ฆฝํธ ์คํ ์ค๊ฐ์ ์ธํฐ๋ํฐ๋ธ ๋ชจ๋๋ก ์ ํ
console = code.InteractiveConsole(locals=globals())
console.interact("์ธํฐ๋ํฐ๋ธ ๋ชจ๋๋ก ์ ํํฉ๋๋ค.")
print("์คํฌ๋ฆฝํธ ์คํ ์ค...")
# ์คํฌ๋ฆฝํธ ์คํ ๋ก์ง
# ์ค๊ฐ์ ์ธํฐ๋ํฐ๋ธ ๋ชจ๋๋ก ์ ํ
interactive_function()
728x90