好的,所以我应该制作一本日期簿,打印出一个月中的所有日子并每月更改,因为它们有不同的日子,它必须使用列表和两个 for 循环,这就是我所拥有的
monthNames = [ "", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
daysInMonth = ( 0,31,28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 )
for i in monthNames:
for n in daysInMonth:
print "%3s %8d _________________________________________"%(i,n)
那么我如何让它每天打印一行呢?