|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#第六题
#here = there = that = 1024
#print('变量here在内存中的地址:',id(here))
#print('变量there在内存中的地址:',id(there))
#print('变量that在内存中的地址:',id(that))
#第七题
#print(' ','登高',' ','李白')
#print('风急天高猿啸哀,渚清沙白鸟飞回。')
#print('无边落木萧萧下,不尽长江滚滚来。')
#print('万里悲秋常作客,百年多病独登台。')
#print('艰难苦恨繁霜鬓,潦倒新停浊酒杯。')
#第八题
#you = str(input('是否口渴,回答是或其他任何回答:'))
#if you == '是': #如果回答‘是’,就会喝水。
# print('喝水')
#else:
# print('去玩')
#第九题
#year = int(input("输入一个年份: "))
#if (year % 4) == 0:
# if (year % 100) == 0:
# if (year % 400) == 0:
# print(year,"是闰年") # 是整百年但能被400整除的
# else:
# print(year,"不是闰年")
# else:
# print(year, "是闰年") # 不是整百年但能被4整除的
#else:
# print(year,"不是闰年")
#第十题
#count = 0
#while count < 5:
# count += 1
# if count <5:
# print('现在是第',count,'道,需要继续答题')
#print('小明已经完成',count,'道题目,可以玩手机了') |
|