# coding:utf-8
work = {}
# 1
one_value = (1,)
one_kye = 1
work[str(one_kye)] = one_value
print(work)
# 2
tow_key = (2,)
tow_value = [1, 2]
work[str(tow_key)] = tow_value
print(work)
# 3
three_key = (3,)
three_value = [1, 2, 3]
work[str(three_key)] = three_value
print(work)
# 4
four_key = (4,)
four_value = [1, 2, 3, 4]
work[str(four_key)] = four_value
print(work)
# 5
five_key = (5,)
five_value = [1, 2, 3, 4, 5]
work[str(five_key)] = five_value
print(work)
# 6
sex_key = (6,)
sex_value = [1, 2, 3, 4, 5, 6]
work[str(sex_key)] = sex_value
print(work)
# 7
seven_key = (7,)
seven_value = [1, 2, 3, 4, 5, 6, 7]
work[str(seven_key)] = seven_value
print(work)
# 8
eight_key = (8,)
eight_value = [1, 2, 3, 4, 5, 6, 7, 8]
work[str(eight_key)] = eight_value
print(work)
# 9
nine_key = (9,)
nine_value = [1, 2, 3, 4, 5, 6, 7, 8, 9]
work[str(nine_key)] = nine_value
print(work)
keys_1 = list(work.keys())
values_1 = list(work.values())
print(keys_1)
print('------')
print(values_1)
# 1
one = keys_1[0]
one_1 = values_1[0]
print(one, one_1)
print('{} * {} = {}'.format(one, int(one_1[0]), int(one) * one_1[0]))
# 2
tow = (keys_1[1])
tow_1 = (values_1[1])
print(tow, tow_1)
print('{} * {} = {}'.format(tow, int(tow_1[0]), int(tow * tow_1[0])))
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星