童程level1 47-48课后作业
关于
1年前
更新
0
频次
6
题目数
分享
Q1:姓名
Q2:有个一个食品类: class Food(): foods = ‘香蕉’ def __init__(self, name): self.name = name foods=Food(‘苹果’) print(Food.foods) 控制台中会显示以下哪个内容?
Q3:有个一个学生类: class Student(): classes = ‘五年级六班’ def __init__(self, name): self.name = name myName = Student(‘Tom’) print(Student.classes) 控制台中会显示以下哪个内容?
Q4:temperature = -10℃ def func1(): temperature = 27℃ print(室内温度:+ temperature) def func2(): print(室外温度:+ temperature) func1() func2()
Q5:下列说法正确的是哪个选项:
Q6:light = 太阳光 def fun(): light = 灯光 print(light+照明) fun() print(light+照明) 控制台中会显示以下哪个内容?
联系我们
问卷网公众号
师生服务