笔记
文章平均质量分 69
戍楼诵韵
地球探测与信息技术
展开
-
Java 集合 Collection、迭代器、增强for、lambda表达式用法大全
java Collection通用方法介绍,三种通用的遍历方法,迭代器,增强for,lambda原创 2022-10-22 00:08:41 · 536 阅读 · 1 评论 -
Java 重写、多态
重写和多态原创 2022-10-12 20:50:20 · 226 阅读 · 0 评论 -
python文件操作笔记(数据读取&文件写入)
文件操作基础 一.数据读取 1.读取 with open('text.txt') as file: contents = file.read() print(contents) 这样做会有空格,所以我们用rstrip()函数清除空格 with open('text.txt') as file: contents = file.read() print (contents.rstrip()) #rstrip([chars])函数中chars – 指定删除的字符(默认为空格) 2.添加文件路径的数据读原创 2021-09-30 12:51:13 · 275 阅读 · 0 评论