function Adorner
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m00/82/59/wkiom1drbtacnuanaag4-owfb8u045.png-wh_500x0-wm_3-wmp_4-s_1153846836.png "title = "Untitled.png" alt= "Wkiom1drbtacnuanaag4-owfb8u045.png-wh_50"/>
Built-in functions
# s = "Print (123)" # Compile (S, "<string>", "exec")
# exec ("Print (1+2+3)") #代码与字符串都可以执行, but no return value (no return value) # print (eval ("1+2+3")) # You can execute an expression that returns the execution result as a return value (with a return value)
# string = "Zshaox" #对象string is an instance of STR class
# Isin = isinstance (String, str) #isinstance object is an instance of Class # print (ISIN)
# for Key,value in enumerate ([1, 2, 3]): # Print (key, value)
tu = (1, 2, 3, 4, 5, ' 1 ', ' 2 ', ' 3 ') # def f2 (argv): # if argv > 2:# return true#ret = filter (F2,&NBSP;TU) #filter循环第二个参数, the element of the second parameter that can be traversed as a parameter (function), the execution function returns TRUE, The parameter is passed into ret ret = filter (Lambda a: type (a) == int, tu) ret = The list (Ret) print (tuple) #map循环第二个参数, which passes the traversed elements in the second argument as arguments, executes in a function, and returns the value to the RET ret = map (lambda a: a + 100, ret) Print (list (ret))
Python Learning Day4