摘要:
import mathprint 12*34+78-132/6print (12*(34+78)-132)/6print (86/40)**5print math.fmod(145,23)print math.sin(0.5)print math.cos(0.5)a=1+2c=4print "1+2=%d" %aprint "1+2=%d,%d" %(a,c) 阅读全文
摘要:
import time#n=input("input a year:")n=time.localtime()[1]'''if n%400==0 or (n%4==0 and n%100!=0): print "yes"else: print "not"'''print n 阅读全文