摘要: <img> 标签每出现一次,一个 Image 对象就会被创建。 Image 对象属性 属性描述W3C align 设置或返回与内联内容的对齐方式。 Yes alt 设置或返回无法显示图像时的替代文本。 Yes border 设置或返回图像周围的边框。 Yes complete 返回浏览器是否已完成对 阅读全文
posted @ 2020-11-16 23:14 summer_xbc 阅读(851) 评论(0) 推荐(0)
摘要: 读取日志文件的Python示例,一行一行地进入列表。 # With '\n', ['1\n', '2\n', '3'] with open('/www/logs/server.log') as f: content = f.readlines() # No '\n', ['1', '2', '3'] 阅读全文
posted @ 2020-11-16 23:07 summer_xbc 阅读(2221) 评论(0) 推荐(0)