# encoding:utf-8
number = 69
guess = int(input(‘请输入一个整数:‘))
# print(‘你猜的数字是:‘ +str(guess))
if guess == number:
print(‘恭喜你,你猜对了‘)
# elif guess < number:
# print(‘对不起,结果比你猜的要大‘)
else:
print(‘对不起,结果比你猜的要大‘)
# elif guess > number:
# print(‘对不起,结果比你猜的要小‘)
print(‘完成‘)
print(‘-----------完美分割线-----------‘)
for i in range(1,10):
print(i)
else:
print(‘全部输出完了‘)
a_list = [‘1x‘,2,3,4,5,6,7,‘8x‘]
for i in a_list:
print(i)
print(‘-----------完美分割线-----------‘)
b_tuple = (‘1x‘,2,3,4,5,6,7,‘8x‘)
for i in b_tuple:
print(i)
print(‘-----------完美分割线-----------‘)
c_dic = {‘小明‘:123,‘小芳‘:345,‘小青‘:567}
for ele in c_dic:
print(ele)
print(c_dic[ele])
print(‘-----------完美分割线-----------‘)
时间: 2024-10-23 08:25:55