diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-test.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-test.py" new file mode 100644 index 0000000000000000000000000000000000000000..0ebca7acacbe0dfb343b0ad748cb7b3e1b20f381 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-test.py" @@ -0,0 +1,21 @@ +''' +六大基本数据类型:int,float,str,bytes,boolean,None +四大基本数据结构:list,tuple,dict,set +''' +a=int(1) +b=float(2.0) +c=str('3') +d=bytes('4'.encode('utf-8')) +e=bool(5) +f=None + +#print(a,'\n',b,'\n',c,'\n',d,'\n',e,'\n',f,type(f)) +aa=[a,b,c,d,e,f] +bb=(a,b,c,d,e,f) +cc={"a1": a,"b1":b,"c1":c,"d1":d,"e1":e,"f1":f} +dd=set([a,b,c,d,e,f]) + +print('列表aa:',aa) +print('元组bb:',bb) +print('字典cc:',cc) +print('集合dd:',dd) \ No newline at end of file diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-\345\233\233\345\244\247\345\237\272\346\234\254\346\225\260\346\215\256\347\273\223\346\236\204\345\267\256\345\274\202.md" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-\345\233\233\345\244\247\345\237\272\346\234\254\346\225\260\346\215\256\347\273\223\346\236\204\345\267\256\345\274\202.md" new file mode 100644 index 0000000000000000000000000000000000000000..8b08dfbd2d2bbec24b26c74b9d78d42416ecfbce --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\227\240\345\275\242\344\271\213\345\210\203\344\270\266\346\234\200\344\270\272\350\207\264\345\221\275/\347\254\254\344\270\200\345\221\250-\347\254\254\344\270\211\350\212\202-\345\233\233\345\244\247\345\237\272\346\234\254\346\225\260\346\215\256\347\273\223\346\236\204\345\267\256\345\274\202.md" @@ -0,0 +1,13 @@ +1:四大基本数据结构中哪些是可变的, 哪些是不可变的? + +​ 可变的:列表list,字典dict,集合set + +​ 不可以变的:元组tuple + +2:四大基本数据结构中哪些是有序的, 哪些是无序的? + +​ 有序的:列表list,元组tuple + +​ 无序的:字典dict,集合set + +3:set无法包括全部数据类型(bool值为true时) \ No newline at end of file