摘要:
##onefor letter in 'Python': print 'Current Letter : ',letter##twofruits = ['banana','apple','mange']for i in range(len(fruits)): print i ,fruits[i]l = [1,2,3,'a','c']s = (1,2,3,'b','c')d = {1:'a',2:'b',3:'c& 阅读全文
posted @ 2013-03-18 21:17
ladaojeifang
阅读(113)
评论(0)
推荐(0)
摘要:
range(起始数,结束数,间隔)range(0,101,10)0 10 20 30 40 50 60 70 80 90 100结束数不会被返回for x in range(0,101,10): print x, 'hello world'0 hello world10 hello world20 hello world30 hello world40 hello world50 hello world60 hello world70 hello world80 hello world90 hello world100 hello world 阅读全文
posted @ 2013-03-18 18:07
ladaojeifang
阅读(142)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-03-18 10:14
ladaojeifang
阅读(1)
评论(0)
推荐(0)