导航

2015年11月23日

摘要: 小明身高1.75,体重80.5kg。请根据BMI公式(体重除以身高的平方)帮小明计算他的BMI指数,并根据BMI指数:低于18.5:过轻18.5-25:正常25-28:过重28-32:肥胖高于32:严重肥胖用if-elif判断并打印结果:# -*- coding: utf-8 -*-height =... 阅读全文

posted @ 2015-11-23 15:01 袁大头go 阅读(2228) 评论(0) 推荐(0) 编辑

摘要: 请用索引取出下面list的指定元素:# -*- coding: utf-8 -*-L = [ ['Apple', 'Google', 'Microsoft'], ['Java', 'Python', 'Ruby', 'PHP'], ['Adam', 'Bart', 'Lisa']]... 阅读全文

posted @ 2015-11-23 14:21 袁大头go 阅读(250) 评论(0) 推荐(0) 编辑