if ((L-1)==0): L=0 goto 60 ··else: if (S3>S2): goto 50
ibeautiful
浏览 91回答 2
2回答
噜噜哒
1、首先点击输入下方的代码:from goto import *@patch def f2(): goto(10)2、然后输入下方的代码: print 'should not see this' label(10) for i in range(1,99999): print i3、然后在输入下方的代码就完成了: if i == 5: goto('out') label('out') f2()
使用如下例: 1 from goto import *2 3 @patch4 def f2():5 goto(10)6 print 'should not see this'7 label(10)8 for i in range(1,99999):9 print i10 if i == 5:11 goto('out')12 label('out')13 14 f2()用法是:1. from goto import *。注意暂时不支持import goto,不是不能实现,是暂时没时间写。2.对需要使用goto的函数,前面加个@patch3.用label(x)和goto(x)的形式写label和goto。x可以是数字或字符串。 goto模块的代码如下:goto.py