निष्पादित करते समय मैं एक समारोह के साथ एक अजगर मॉड्यूल है:समारोह
def do_stuff(param1 = 'a'):
if type(param1) == int:
# enter python interpreter here
do_something()
else:
do_something_else()
वहाँ जहां मैं टिप्पणी है कमांड लाइन दुभाषिया में छोड़ करने के लिए एक तरीका है? यदि ऐसा है तो मैं अजगर में निम्नलिखित चलने वाले:
>>> import my_module
>>> do_stuff(1)
मैं गुंजाइश और मैं कहाँ do_stuff()
में टिप्पणी के संदर्भ में अपने अगले शीघ्र मिल सकता है?
की संभावित डुप्लिकेट [अजगर में इंटरएक्टिव मोड में जाएं] (http://stackoverflow.com/questions/13432717/enter-interactive-mode-in-python) –