摘要: >>> import requestsTraceback (most recent call last): File "<pyshell#3>", line 1, in <module> import requests File "C:\Users\Administrator\AppData\Loc 阅读全文
posted @ 2020-08-15 17:36 王钻风 阅读(14267) 评论(1) 推荐(3) 编辑
摘要: lambda函数:匿名函数,我理解的函数没有名字 >>> def area(x):#定义一个函数,计算圆形的面积 return(3.14**x) >>> area(5) 305.2447761824001 使用lambd函数定义这个函数 >>> lambda x :3.14**x<function 阅读全文
posted @ 2020-08-15 08:06 王钻风 阅读(107) 评论(0) 推荐(0) 编辑
摘要: >>> dir(list)['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr 阅读全文
posted @ 2020-08-14 19:23 王钻风 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #string的内置方法 >>> dir(str)['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribu 阅读全文
posted @ 2020-08-14 19:16 王钻风 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Python中sequence包括:list、tuple、dict、string 共同特点: (1)、可以通过索引得到一个元素 (2)、索引值从0开始,最后一个是-1 (3)、可以使用分片的方法 。。。。。。。。。。未完待续 阅读全文
posted @ 2020-08-14 19:04 王钻风 阅读(112) 评论(0) 推荐(0) 编辑
摘要: license() >>> license()A. HISTORY OF THE SOFTWARE Python was created in the early 1990s by Guido van Rossum at StichtingMathematisch Centrum (CWI, see 阅读全文
posted @ 2020-08-14 18:53 王钻风 阅读(255) 评论(0) 推荐(0) 编辑
摘要: >>> credits()#学分,弄不懂是什么意思 Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python. 阅读全文
posted @ 2020-08-14 18:52 王钻风 阅读(486) 评论(0) 推荐(0) 编辑
摘要: >>> copyright()Copyright (c) 2001-2020 Python Software Foundation.All Rights Reserved. Copyright (c) 2000 BeOpen.com.All Rights Reserved. Copyright (c 阅读全文
posted @ 2020-08-14 18:49 王钻风 阅读(424) 评论(0) 推荐(0) 编辑
摘要: (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 阅读全文
posted @ 2020-08-14 18:48 王钻风 阅读(152) 评论(0) 推荐(0) 编辑
摘要: >>> dir(__builtins__)#Python 内置的函数列表['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'Bu 阅读全文
posted @ 2020-08-12 22:47 王钻风 阅读(162) 评论(0) 推荐(0) 编辑