04 2021 档案

摘要:>>> list_a=[1,2,3,4] >>> list_a [1, 2, 3, 4] >>> list_b=list_a >>> list_b [1, 2, 3, 4] >>> list_a.append(1) >>> list_a [1, 2, 3, 4, 1] >>> list_b [1, 阅读全文
posted @ 2021-04-13 11:15 MoKin_Li 阅读(162) 评论(0) 推荐(0) 编辑
摘要:电脑上安装了Python 2和Python 3,在CMD下,输入:py -2和py -3,可以进行多个版本的切换: 阅读全文
posted @ 2021-04-13 09:54 MoKin_Li 阅读(708) 评论(0) 推荐(0) 编辑
摘要:>>> class TestClass:... def __init__(self,name,gender):... self.Name=name... self.Gender=gender... print("hello")...>>> test=TestClass('Lee','Man')hel 阅读全文
posted @ 2021-04-12 19:57 MoKin_Li 阅读(91) 评论(0) 推荐(0) 编辑
摘要:>>> import urllib.parse>>> print(urllib.parse.quote("Lee MoKin!"))Lee%20MoKin%21>>> 阅读全文
posted @ 2021-04-12 10:17 MoKin_Li 阅读(253) 评论(0) 推荐(0) 编辑