![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
欲登太行
君子不器
展开
-
合并excel
import tkinter as tkfrom tkinter import filedialogimport osimport pandas as pdimport glob root = tk.Tk()root.withdraw() # 选择文件夹位置filelocation = os.path.normpath(filedialog.askdirectory(initialdir=os.getcwd()))lst=[] # 读取文件夹下所有文件(xls和xlsx都读取...原创 2021-01-10 20:39:26 · 133 阅读 · 0 评论 -
python 读文件
with open("C:\\Users\\L\\Desktop\\胶州湾数据解算\\20181011.txt") as file: for line in file: print(line)原创 2020-01-14 09:53:03 · 133 阅读 · 0 评论 -
驼峰命名法及其应用
原创 2019-12-08 16:25:44 · 302 阅读 · 0 评论 -
python 两个数组的运算
a = [1, 2, 4]b = [2, 3, 5]c = [x + 2 * y for x, y in zip(a, b)]原创 2019-12-05 09:46:50 · 1691 阅读 · 0 评论