欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

pythonif語(yǔ)句的3種形式例題

pythonif語(yǔ)句的3種形式例題?

1、單分支:

if 3>2:

print(' OK')

2、雙分支:

jitu,tui=map(int,input('請(qǐng)輸入雞兔總數(shù)和腿總數(shù):').split())

tu=(tui-jitu*2)/2

if int(tu)==tu:

print('雞:{0},兔:'{1}'.format(int(jitu-tu),int(tu))

else:

print('數(shù)據(jù)不對(duì),無(wú)解')

3、多分支:

def fun(score):

if score>100 or score<0:

return' wrong score.must between 0 and 100.'

elif score>=90:

return 'A'

elif score>=80:

return 'B'

elif score>=70:

return 'C'

elif score>=60:

return 'D'

else:

return 'E'