#!/usr/local/sbin/python3 # -*- coding:utf-8 -*- tiangan = [‘甲‘,‘乙‘,‘丙‘,‘丁‘,‘戊‘,‘己‘,‘庚‘,‘辛‘,‘壬‘,‘癸‘] dizhi = [‘子‘,‘丑‘,‘寅‘,‘卯‘,‘辰‘,‘巳‘,‘午‘,‘未‘,‘申‘,‘酉‘,‘戌‘,‘亥‘] index = 0 l = [] while index < 60: l.append(tiangan[index%10]+dizhi[index%12]) index = index+1 print(l)
时间: 2024-10-20 17:12:43