摘要:
>>> import requestsTraceback (most recent call last): File "<pyshell#3>", line 1, in <module> import requests File "C:\Users\Administrator\AppData\Loc 阅读全文
摘要:
lambda函数:匿名函数,我理解的函数没有名字 >>> def area(x):#定义一个函数,计算圆形的面积 return(3.14**x) >>> area(5) 305.2447761824001 使用lambd函数定义这个函数 >>> lambda x :3.14**x<function 阅读全文
摘要:
>>> dir(list)['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr 阅读全文
摘要:
#string的内置方法 >>> dir(str)['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribu 阅读全文
摘要:
Python中sequence包括:list、tuple、dict、string 共同特点: (1)、可以通过索引得到一个元素 (2)、索引值从0开始,最后一个是-1 (3)、可以使用分片的方法 。。。。。。。。。。未完待续 阅读全文
摘要:
license() >>> license()A. HISTORY OF THE SOFTWARE Python was created in the early 1990s by Guido van Rossum at StichtingMathematisch Centrum (CWI, see 阅读全文
摘要:
>>> credits()#学分,弄不懂是什么意思 Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python. 阅读全文
摘要:
>>> copyright()Copyright (c) 2001-2020 Python Software Foundation.All Rights Reserved. Copyright (c) 2000 BeOpen.com.All Rights Reserved. Copyright (c 阅读全文
摘要:
(1)\help()#帮助 Welcome to Python 3.8's help utility! If this is your first time using Python, you should definitely check outthe tutorial on the Intern 阅读全文
摘要:
>>> dir(__builtins__)#Python 内置的函数列表['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'Bu 阅读全文