日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:python中的分支有幾種形式

【相關(guān)學(xué)習(xí)推薦:python教程】

python中的分支有三種形式,分別是:

1、if

#!/usr/bin/env python
 #-*- coding:utf-8 -*-
user=input('Please input your username : ')
if user=='admin':5     print('Nice')

2、 if ... else ...

#!/usr/bin/env python
 #-*- coding:utf-8 -*-
 user=input('Please input your username : ')
 pass=input('Please input your password: ')
 if user=='admin' and pass=='123456':
     print('Good')
 else:
     print('Bad')

3、if ... elif ... else ...

#!/usr/bin/env python
 #-*- coding:utf-8 -*-
grade=(prompt='Please input your grade')
if grade>=85:
    print('Great')
elif garde<85 and grade>=70:
    print('Good')
else grade<70:
    print('Bad')

網(wǎng)站題目:創(chuàng)新互聯(lián)Python教程:python中的分支有幾種形式
網(wǎng)站鏈接:http://m.5511xx.com/article/cosccjs.html