摘要:
# author: Roy.Gage_of_oldboy = 56count = 0while count<3: if count==3: break guess_age=int( input ("guess age:")) if guess_age == age_of_oldboy: print( 阅读全文
摘要:
# author: Roy.Gshopping_cart=[]salery=input("salery is :")item_list=[ ("a",500), ("b",600), ("b",700), ("d",800), ("e",900), ("f",1000), ("g",1100), ( 阅读全文
摘要:
# author: Roy.Ga=[1,2,3,4,5,6]b=enumerate(a)print(a)for i in b: print(i)# enumerate 好像是将原来的数组的序号,记录在了一块内存中,而元素定义成序号加元素 的形式,当调用他时,只能逐项取出元素,因为,b=enmumer 阅读全文