随笔分类 - python
摘要:pattern1='(([01]{0,1}\d{0,1}\d|2[0-4]\d|25[0-5])\.){3}([01]{0,1}\d{0,1}\d|2[0-4]\d|25[0-5])'
阅读全文
摘要:The first thing you’ll need to do is use the built-in python open file function to get a file object. When you use the open function, it returns somet
阅读全文
摘要:python 函数的参数可以具有默认值 We can provide a default value to an argument by using the assignment operator (=). python函数的参数都可以有默认值,但是有默认值的参数必须在右侧,否则报错。 Any nu
阅读全文
摘要:默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串 行与缩进 python最具特色的就是使用缩进来表示代码块,不需要使用大括号 {} 。 缩进的空格数是可变的,但是同一个代码块的语句必须包含相同的缩进空格数。 Python Keywords Keywo
阅读全文
浙公网安备 33010602011771号