We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data stractures
# define a list of names names = ["harry","Ron","heri","Ginny"]
# define a dic houses = {"harry":"Gry","Draco":"Sly"} houses['Herminoe'] = "Gry"
coordinateX = 10.0 coordinateY = 20.0 coordinate = (10.0,20,0) #即相当于直接可以用一个变量来代表两个变量
#create an empty set s = set() # add elements s.add(1) s.add(2) s.add(3) s.add(4) s.add(4) s.remove(1) print(s) // 234
The text was updated successfully, but these errors were encountered:
No branches or pull requests
python中的数据结构:
Data stractures
list 列表
dic 字典
tuble 元组
set
The text was updated successfully, but these errors were encountered: