1. 程式人生 > >python 實現60甲子

python 實現60甲子

end Coding [] color pre style pan pytho spa

#!/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)

python 實現60甲子