2019年12月

数组去重,一般都是在面试的时候才会碰到,一般是要求手写数组去重方法的代码。如果是被提问到,数组去重的方法有哪些?你能答出其中的10种,面试官很有可能对你刮目相看。
在真实的项目中碰到的数组去重,一般都是后台去处理,很少让前端处理数组去重。虽然日常项目用到的概率比较低,但还是需要了解一下,以防面试的时候可能回被问到。

- 阅读剩余部分 -

睡醒了一觉,突然感觉失去了什么东西,说不上来的失落,也许是又失去了一个好友的原因吧。

随着时间的流逝,曾经拥有的,会慢慢的全部失去,直到失去这个世界……

在太阳存在前的数百亿年中,我曾是星尘,而在这颗恒星湮灭后,我又将重归于星尘。

我不欢迎死亡的到来,但我也不惧怕死亡,正如我不害怕我所不存在的那数百亿过去的时光。

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

- 阅读剩余部分 -