随笔分类 -  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])' 阅读全文
posted @ 2021-10-07 16:19 xman888 阅读(264) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-07 12:48 xman888 阅读(12) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-07 11:49 xman888 阅读(147) 评论(0) 推荐(0)
摘要:python 函数的参数可以具有默认值 We can provide a default value to an argument by using the assignment operator (=). python函数的参数都可以有默认值,但是有默认值的参数必须在右侧,否则报错。 Any nu 阅读全文
posted @ 2021-10-05 23:02 xman888 阅读(63) 评论(0) 推荐(0)
摘要:默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串 行与缩进 python最具特色的就是使用缩进来表示代码块,不需要使用大括号 {} 。 缩进的空格数是可变的,但是同一个代码块的语句必须包含相同的缩进空格数。 Python Keywords Keywo 阅读全文
posted @ 2021-10-05 15:43 xman888 阅读(55) 评论(0) 推荐(0)