0
1
273
中级会员
def quadrant(x,y): if x>=0: if y>=0: return 1 else: return 4 else: if y>=0: return 2 else: return 3 print 'please input your coordinates:' x=input('the x is:') y=input('the y is:') answer=quadrant(x,y) print 'the quadrant is %d.'%answer
使用道具 举报
发表回复 回帖后跳转到最后一页
|手机版|Archiver|Crossin的编程教室 ( 苏ICP备15063769号 )
GMT+8, 2024-5-5 12:36 , Processed in 0.031962 second(s), 22 queries .
Powered by Discuz! X2.5
© 2001-2012 Comsenz Inc.