IP属地:广东
def decodeMorse(morseCode):# ToDo: Accept dots, dashes and spaces, retur...
函数 函数是程序中可复用的代码块。你可以给这段代码块起名字,也就是函数名。然后在程序中的任意地方去调用它。我们已经使用过内置的一些函数,比如ra...
安装python模块时出现:error: Setup script exited with error: command 'gcc' faile...
模块 函数可以复用代码。如果想复用一系列的函数怎么办?如你所想,答案就是模块。有很多写模块的方法,但是最简单的还是创建一个后缀为.py的文件,然...
Delete occurrences of an element if it occurs more than n times
用三元运算简化