day 1
I am preparing for the national examination for postgraduate.
import
other model
import time
print(time.localtime())
import time as t
print(t.localtime())
from time import time,localtime
print(localtime())
print(time)
#only use two easy function of this model
from time import*
print(time())
#use all of the model
write my own model
#how to make my model
#you can also put it in site-passage.It will be used as local model.
#def our function in our model
def printdata(data):
print(data)
#make sure that M1 and P1 in the same location
import M1
M1.printdata('JC fighting')
break or continue
a=True
while a:
b=input('type something')
if b=='1':
a=False
elif b=='2':
a=False
else:
pass
#'pass' mean do nothing
#there is a difference between continue and break
#example:
a=True
while a:
b=input('type a number')
if b==1:
#break
#break will break this loop and do the next programe
continue
#this continue will let this circulation do again
a=False
else:
print('type another number')