摘要: 字符串是 Python 中最常用的数据类型。我们可以使用单引号 ' 或双引号" 来创建字符串。 阅读全文
posted @ 2021-10-07 21:10 xman888 阅读(42) 评论(0) 推荐(0) 编辑
摘要: By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes. 阅读全文
posted @ 2021-10-07 19:37 xman888 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-07 12:48 xman888 阅读(9) 评论(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 阅读(110) 评论(0) 推荐(0) 编辑