def interval(start,stop=None,step=1):'Imitates range() for step >0'if stop is None:start,stop=0,startresult=[]i=startwhile i<stop:result.append(i)i += stepreturn result
在python一個函數中,if下的第一句是什么意思?
慕蓋茨4494581
2019-02-27 11:07:28