上一页 1 ··· 339 340 341 342 343 344 345 346 347 ··· 375 下一页
摘要: >>> test1 = dict(key8="ccc",key3="ete",key2="iii",key4 = "wwww") >>> type(test1) <class 'dict'> >>> len(test1) 4 >>> for i,j in test1.items(): print(i 阅读全文
posted @ 2021-01-01 18:00 小鲨鱼2018 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 1、 >>> test1 = dict(key1="xxx",key2="aaa",key3=100,key="abc") >>> test1 {'key1': 'xxx', 'key2': 'aaa', 'key3': 100, 'key': 'abc'} >>> type(test1) <cla 阅读全文
posted @ 2021-01-01 17:50 小鲨鱼2018 阅读(241) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = {"zhangsan":["java","c","python"],"lisi":["c++","golang"],"wangwu":["c","java","python","javascript"]} >>> type(test1) <class 'dict'> &g 阅读全文
posted @ 2021-01-01 12:28 小鲨鱼2018 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-12-31 23:17 小鲨鱼2018 阅读(109) 评论(0) 推荐(0) 编辑
摘要: >>> 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 阅读全文
posted @ 2020-12-31 22:42 小鲨鱼2018 阅读(83) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = {"key1":"aa","key2":"bb","key3":"cc","key4":"dd","key5":"ee","key6":"ff","key7":"gg"} >>> type(test1) <class 'dict'> 阅读全文
posted @ 2020-12-31 21:07 小鲨鱼2018 阅读(3337) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = {"key1":"aa","key2":"bb","key3":"cc","key4":"dd","key5":"ee","key6":"ff","key7":"gg"} >>> type(test1) <class 'dict'> 阅读全文
posted @ 2020-12-31 20:31 小鲨鱼2018 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 通常会在内存中找一个位置来存放cpu要处理的数据,每个存放数据的位置都有一个“地址”,通过这个地址,cpu就可以找到并使用他们。这个存放数据的位置就是变量。 阅读全文
posted @ 2020-12-31 12:26 小鲨鱼2018 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@centos7pc1 xiaoxiami]# vim ~/.vimrc filetype indent onhighlight Comment ctermfg=green guifg=green ## 增加上面两行 阅读全文
posted @ 2020-12-31 00:49 小鲨鱼2018 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@centos7pc1 ~]# gcc --version bash: gcc: command not found... 2、 [root@centos7pc1 ~]# yum install gcc gcc-c++ kernel-devel -y Loaded plugins: 阅读全文
posted @ 2020-12-30 22:22 小鲨鱼2018 阅读(767) 评论(0) 推荐(0) 编辑
上一页 1 ··· 339 340 341 342 343 344 345 346 347 ··· 375 下一页