1. 首页
  2. 数据库
  3. 其它
  4. 笨办法学Python3 习题32和习题33

笨办法学Python3 习题32和习题33

上传者: 2021-01-15 05:49:01上传 PDF文件 18.17KB 热度 6次
习题32 循环和列表 the_count = [1, 2, 3, 3, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] #this first kind of for-loop through a list for number in the_count: print(This is count %d % number) #same as above for fruit in fruits: print(A
用户评论