1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
shu = '01老鼠' niu = '02牛' hu = '03虎' tu = '04兔' long = '05龙' she = '06蛇' ma = '07马' yang = '08羊' hou = '09猴' ji = '10鸡' gou = '11狗' zhu = '12猪'
shengxiao =[] shengxiao.append(gou) shengxiao.append(ji) shengxiao.append(zhu) shengxiao.append(hou) shengxiao.append(she) shengxiao.append(tu) shengxiao.append(hu) shengxiao.append(niu) shengxiao.append(shu) shengxiao.append(long) shengxiao.append(ma) shengxiao.append(yang)
print(shengxiao) print(len(shengxiao)) shengxiao.sort() print(shengxiao) shengxiao.sort(reverse=True) print(shengxiao) shengxiao.sort(reverse=True) print(shengxiao)
|