diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/.keep" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\344\275\234\344\270\232.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\344\275\234\344\270\232.png" new file mode 100644 index 0000000000000000000000000000000000000000..ca5fb8cb3e94545323882b4fee0f143cb1d7900c Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\200\350\212\202\344\275\234\344\270\232.png" differ diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\211\350\212\202.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\211\350\212\202.py" new file mode 100644 index 0000000000000000000000000000000000000000..46a342b16bb76e8fb63f1d0744fd0ad47cdd4636 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\270\211\350\212\202.py" @@ -0,0 +1,21 @@ +# 1.四大基本数据结构中哪些是可变的, 哪些是不可变的? +# list,dict.set;是可变的, tuple 是不可变的. +# 2.四大基本数据结构中哪些是有序的, 哪些是无序的? +# 有序的是:list,tuple;无序:dict,set + +# 3.创建`set`, `list`, `dict`, `tuple`实例, 每个数据结构的实例需要包括六大基本类型. + +def my_main(): + list_test = [1, 2.00, "mmm", False, bytes(1), None] + print(f'my_list:{list_test}') + tuple_test = (1, 1, 2.00, "mmm", False, bytes(1), None,) + print(f'tuple:{tuple_test}') + dict_test = {1: 1, 2: "mypython", 3: True, 4: bytes(1), 5: None} + print(f'dict:{dict_test}') + set_test = {1, 1, 2.00, "mmm", False, bytes(1), None} + print(f'dict:{set_test}') + + +if __name__ == '__main__': + my_main() + diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/.gitignore" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/.gitignore" new file mode 100644 index 0000000000000000000000000000000000000000..8b9c4da2e8a25dbad6643b8de6a5d8288dcdcd55 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/.gitignore" @@ -0,0 +1,5 @@ +.idea +.git +/venv/ +/test/ +*/__pycache__/ \ 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/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202.png" new file mode 100644 index 0000000000000000000000000000000000000000..d968995616ac929a7c05b1ad83e5b68da25fad51 Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/2\347\217\255/2\347\217\255_\346\233\246/\347\254\254\344\270\200\345\221\250/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202\344\275\234\344\270\232/\347\254\254\344\270\200\345\221\250_\347\254\254\344\272\214\350\212\202.png" differ