擅长:python、mysql、java
<p>你可以用</p>
<pre><code>if __name__=='__main__':
call_desiredfunction()
</code></pre>
<p>例如</p>
<pre><code>def c():
print 'c'
def b():
print 'b'
c()
def a():
print 'a'
b()
if __name__=='__main__':
print 'Stared Execution'
a()
</code></pre>
<p>输出:</p>
<pre><code>Stared Execution
a
b
c
</code></pre>