if with else,ifelse,name = raw_i
if with else,ifelse,name = raw_i
name = raw_input('What is your name? ')if name.endswith('Yin'): print 'Hello, Mr. Yin'else: print 'Hello, stranger'
- Logical operators conditions,logicaloperators,username
- Fetches an already-loaded module,,#//simple.py
- Change referenced variable value,referencedvariable,#/
- pprint module offers more sophisticated control over pri
- backslashes allow continuations,,a = 0b = 1c
- class attributes and static methods,attributesmethods,
热门文章:
相关内容
- Logical operators conditions,logicaloperators,username = '
- Fetches an already-loaded module,,#//simple.py
- Change referenced variable value,referencedvariable,#//File: sma
- pprint module offers more sophisticated control over printing,,#The
- backslashes allow continuations,,a = 0b = 1c
- class attributes and static methods,attributesmethods,class Critte
- Nested try and catch,nestedcatch,try: try:
- Dictionary get: default value,dictionaryvalue,branch = {'s
- 'ur' to have Python use the Raw-Unicode-Escape encodi
- Same reference to an integer object, a string and a list,referencei
评论关闭