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,
阅读全文
摘要:电脑上安装了Python 2和Python 3,在CMD下,输入:py -2和py -3,可以进行多个版本的切换:
阅读全文
摘要:>>> class TestClass:... def __init__(self,name,gender):... self.Name=name... self.Gender=gender... print("hello")...>>> test=TestClass('Lee','Man')hel
阅读全文
摘要:>>> import urllib.parse>>> print(urllib.parse.quote("Lee MoKin!"))Lee%20MoKin%21>>>
阅读全文