标签:day01 编程 == echo gen if语句 man pytho python3
PHP if语句打招呼编程
$gender = "man"; if($gender == "man"){ echo "you are man"; }else{ echo "you are woman"; }
但是PYTHON3.X的if语句如下
gender = "male" if gender == "male" : print("帅哥") else: print("美女")
标签:day01 编程 == echo gen if语句 man pytho python3
原文地址:http://www.cnblogs.com/darkalex001/p/7489308.html