`

square.py源代码分析

阅读更多
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>

# function definition

def square( y ):

return y * y

#计算平方

for x in range( 1, 11 ):

print square( x ),

#打印1到11的平方

print

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics