Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mob ...
分类:
其他好文 时间:
2019-02-28 13:16:55
阅读次数:
155
1121 Damn Single (25 分) "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a ...
分类:
其他好文 时间:
2019-02-28 00:44:01
阅读次数:
186
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
其他好文 时间:
2019-02-23 19:28:01
阅读次数:
215
#格式化输出print("ang is a good time")str7="ong is a boy"num=10f=5.22313# %d(整数站位符) %s(字符串站位符) %f(浮点数站位符)# %f默认小数点后6位,%.3f精确到小数点后3位。默认会四舍五入print("num=",num ...
分类:
编程语言 时间:
2019-02-22 21:20:09
阅读次数:
312
题目如下: Arijit is a brilliant boy. He likes memory games. He likes to participate alone but this time he has to have a partner. So he chooses you. In th ...
分类:
其他好文 时间:
2019-02-21 21:34:38
阅读次数:
124
原文链接:https://blog.csdn.net/zengxuewen2045/article/details/51868976 1、 案例一:三个节点,关闭一个 由于维护和配置变更等工作需要,正常关闭节点A,其它节点会收到”good by”信息,cluster size大小会减少,一些属性如仲 ...
分类:
其他好文 时间:
2019-02-19 11:44:09
阅读次数:
247
「Google面试题」 【题目】 判断一个字符串是否包含重复字符。例如:“good”就包含重复字符‘o’,而“abc”就不包含重复字符 【题目分析】 对字符串进行遍历,统计每一个字符的个数,如果不为1则跳出遍历并返回True 【解答】 1 #!/Users/minutesheep/.pyenv/sh ...
分类:
其他好文 时间:
2019-02-17 12:48:15
阅读次数:
205
代码质量实战Any fool can write code that a computer can understand. Good programmerswrite code that humans can understand. -- Martin FowlerThe only valid me ...
分类:
编程语言 时间:
2019-02-15 15:46:00
阅读次数:
189
背景 在我们的日常开发中,我们会经常使用枚举类型。有时我们只需要显示枚举的值或者枚举值对应名称, 但是在某些场景下,我们可能需要将枚举值显示为不同的字符串。 例: 当前我们有如下枚举Level 这个枚举有4个可选值B, N, G, VG。 现在我们希望用Bad, Normal, Good, Very ...
Is There A Second Way Left? Description: Nasa, being the most talented programmer of his time, can’t think things to be so simple. Recently all his ne ...
分类:
其他好文 时间:
2019-02-14 00:15:02
阅读次数:
147