摘要:
1、 >>> test1 = ["aaa","bbb","aaa","aaa","ccc","ccc","ddd","eee"] >>> test2 = [] >>> for i in test1: if i not in test2: test2.append(i) >>> test2 ['aaa 阅读全文
摘要:
>>> test1 = {"key8":"aaa","key4":"bbb","key9":"ccc","key3":"ddd","key2":"eee"} >>> for i in test1.keys(): print(i) key8 key4 key9 key3 key2 >>> for i 阅读全文
摘要:
>>> test1 = {"key1":"aa","key2":"bb","key3":"cc","key4":"dd","key5":"ee","key6":"ff","key7":"gg"} >>> type(test1) <class 'dict'> 阅读全文
摘要:
>>> test1 = {"key1":"aa","key2":"bb","key3":"cc","key4":"dd","key5":"ee","key6":"ff","key7":"gg"} >>> type(test1) <class 'dict'> 阅读全文
摘要:
通常会在内存中找一个位置来存放cpu要处理的数据,每个存放数据的位置都有一个“地址”,通过这个地址,cpu就可以找到并使用他们。这个存放数据的位置就是变量。 阅读全文
摘要:
1、 [root@centos7pc1 xiaoxiami]# vim ~/.vimrc filetype indent onhighlight Comment ctermfg=green guifg=green ## 增加上面两行 阅读全文