摘要:
1 #!/usr/bin/python 2 3 def hello(i,greet='long time to see!'): 4 out = "hello "+i+" "+greet 5 nobody = {'as':'123','ad':'1234','om':'ssss'} 6 if i == '2':return nobody 7 ret... 阅读全文
摘要:
1 a = "please" 2 b = "say something:" 3 c =a+b 4 m = 0 5 a = True 6 while a: 7 m = int(raw_input(c)) 8 print m+1 9 if m>11: 10 a = False 11 12 #please say something:wwww... 阅读全文
摘要:
阅读全文
摘要:
python 中没有i++! 阅读全文
摘要:
1 name = ['alle','mike','tom','jerry','alice','hebe'] 2 for i in name: 3 if i == 'tom': 4 print 'get!' 5 #get! 6 7 if 'ale'not in name :print 'get!' 8 9 #get! 10 a = 'tom' 11 ... 阅读全文