Python 测验
x = True
def printLine(text):
print(text, ' Runcodex')
printLine('Python')
def greetPerson(*name):
print('Hello', name)
greetPerson('Runcodex', 'Google')
result = lambda x: x * x
print(result(5))
def Foo(x):
if (x==1):
return 1
else:
return x+Foo(x-1)
print(Foo(4))
numbers = [1, 3, 6]
newNumbers = tuple(map(lambda x: x , numbers))
print(newNumbers)
Python 测验
点我分享笔记