YUANya

导航

 

2019年7月4日

摘要: 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... 阅读全文
posted @ 2019-07-04 15:08 YUANya 阅读(218) 评论(0) 推荐(0) 编辑
 
摘要: 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... 阅读全文
posted @ 2019-07-04 12:48 YUANya 阅读(151) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2019-07-04 12:37 YUANya 阅读(4223) 评论(2) 推荐(0) 编辑
 
摘要: python 中没有i++! 阅读全文
posted @ 2019-07-04 11:07 YUANya 阅读(367) 评论(0) 推荐(0) 编辑
 
摘要: 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 ... 阅读全文
posted @ 2019-07-04 09:53 YUANya 阅读(232) 评论(0) 推荐(0) 编辑