为什么不能运行出来呢??
def main():
months=('JanFebMarAprMayJunJulAugSepOctNovDec')
m=input('please enter month number(1-12):')
pos=(m-1)*3
monthabber=months[pos:pos+3]
print 'The month abbreviation is',monyhabber+'.'
def main():
months=('JanFebMarAprMayJunJulAugSepOctNovDec')
m=input('please enter month number(1-12):')
pos=(m-1)*3
monthabber=months[pos:pos+3]
print 'The month abbreviation is',monyhabber+'.'
2016-12-28
举报