美文网首页
Python 7 Programming Tutorial

Python 7 Programming Tutorial

作者: 豆表示低调 | 来源:发表于2016-08-29 16:53 被阅读0次
age = 27

if age < 21:
    print("No beer for you!")


name = "Tommy D"

if name is "Bucky":
    print("Hey there Bucky")
elif name is "Lucy":
    print("What up Lucedawg?")
elif name is "Sammy":
    print("What up Slammy?")
else:
    print("Please sign up for the site!")

相关文章

网友评论

      本文标题: Python 7 Programming Tutorial

      本文链接:https://www.haomeiwen.com/subject/ivaxettx.html