a = "i love love you you" from collections import Counter dict( Counter(list(a.split())) ) Out[103]: {'i': 1, 'love': 2, 'you': 2} 或者: s = '11AAAdfdfB ...
分类:
其他好文 时间:
2020-02-26 22:44:56
阅读次数:
76
参考: 左程云进阶算法第8节视频内容(2小时18分钟处) 视频百度网盘:链接:https://pan.baidu.com/s/1beVfli8bmH9obwNW3NT3Kg 提取码:q5bi loveforever个人博客网站:https://zhenganwen.top/posts/310d483 ...
分类:
编程语言 时间:
2020-02-25 09:51:51
阅读次数:
73
The 12th Doctor’s last words: “Oh there it is. Silly old universe. The more I save it, the more it needs saving. It’s a treadmill. “Yes, Yes I know th ...
分类:
其他好文 时间:
2020-02-21 18:15:37
阅读次数:
91
import os # 创建的目录 path = "D:/gaona/liuhai/i love you" os.makedirs( path ) ...
分类:
其他好文 时间:
2020-02-20 20:36:08
阅读次数:
66
Memorize: 1.People are always talking about 'Problem of Youth.' 2.If there is one--which I take leave to doubt--then it is the elder peole who creat i ...
分类:
其他好文 时间:
2020-02-19 13:06:48
阅读次数:
93
题目:https://atcoder.jp/contests/abc155/tasks/abc155_c 这道题的题意是给我们n个string,让我们统计每个string出现的次数,并输出次数最多的一个或多个string(按字典序来排列) 当时我想的是用数组来统计每个string,之后再sort一次 ...
分类:
编程语言 时间:
2020-02-17 01:06:22
阅读次数:
79
这几天在b站看小甲鱼的python3教程,照着写了个有道翻译的程序 代码中字典data中的内容,用浏览器审查元素,先随便输一个要翻译的,找到跳出来的post的那个网址,看formdata就行了 返回的是json格式的,故需解码 代码如下 1 #!/usr/bin/env python 2 # -*- ...
分类:
编程语言 时间:
2020-02-16 22:15:15
阅读次数:
133
1,luck_guy ida打开,很简单 #include<stdio.h> int main() { char f1[] = "GXY{do_not_"; char f2[] = "icug`of"; char temp[7]; for (int j = 0; j < 7; ++j) { if ( ...
分类:
其他好文 时间:
2020-02-16 21:07:15
阅读次数:
325
1,accomplishment,something that is successful. 2,acronym,abbreviation,first letters,some words./?æk.r?.n?m/. 3,adhere,to stick firmly. 4,aggression,/? ...
分类:
其他好文 时间:
2020-02-15 09:20:18
阅读次数:
87
第九讲 并列句 The girl saw Kingkong. The girl fell in love with Kingkong. The girl saw Kingkong and fell in love with him. \1. 并列句:包括两个或两个以上的简单句用并列连词或分好连接的句 ...
分类:
其他好文 时间:
2020-02-12 22:08:02
阅读次数:
89