摘要:
# author: Roy.G# a=[2*i for i in range(10)] #this is a list# a=print(a)# b=(2*i for i in range(1000)) #this is a ganerator# # print(b)# # for i in b:# 阅读全文
摘要:
# author: Roy.G# a=[2*i for i in range(10)] #this is a list# a=print(a)# b=(2*i for i in range(1000)) #this is a ganerator# # print(b)# # for i in b:# 阅读全文
摘要:
# author: Roy.G'''x=lambda x,y:x**3+y**3a=x(3,3)print(a)'''# def a(a):# a=2*a# a=b(a) # this b(a) just is a str ,not a function ,so it has no problem# 阅读全文
摘要:
# author: Roy.Glist_1=[1,2,3,4,5,6,7,7,7,7,7,7,8,]set_1=set(list_1) #change list to setset_2={1,2,3,4,6,7,8,9,10}print(list_1,type(list_1))print(" ")p 阅读全文
摘要:
# author: Roy.Ga="my name is \t roy.guo,i am {year} years old,i like {frute}"print(a.center(60,"-")) # .center print 50 character,center the string an 阅读全文