最新回答 / 孤獨劍888
在IDEL里點file ? 然后點 ?new file ?然后粘貼代碼,按F5,將代碼保存到硬盤上,就可以看到結果了我用的是python3.5,需要修改print 為 print(),可以運行,2.7的話這個代碼應該是對的
2016-12-20
最新回答 / bog巫
<...code...>def fact(n):? ? if n==1:? ? ? return 1? ?return n * fact(n - 1)print fact(3)要print
2016-12-15
最新回答 / 雨醉風塵
# -*- coding: UTF-8 -*-height = 166 ?#身高weight = 140 ?#體重if height >= 170 and height <= 180:? ? if weight >=120 and weight <=140:? ? ? ? print u'健康'? ? else:? ? ? ? print u'不健康'else:? ? print u'不健康'<...code...>
2016-12-14