![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
天高孤影任我游
这个作者很懒,什么都没留下…
展开
-
在xml第二行插入文本
生成xmlfrom xml.etree.ElementTree import Element,SubElement,ElementTreeimport pandas as pdimport osroot = Element('root_name')for i,s in zip(range(3),['First','Second','Third']): sub_root = SubElement(root,s) sub_root.text = s+'_sub_root'tre.原创 2021-05-30 22:04:16 · 169 阅读 · 0 评论 -
bat一键启动jupyter lab
编写bat一键启动jupyter lab每次需要打开 Anaconda Prompt窗口,然后在窗口中输入“jupyter lab”命令启动jupyter lab,众所周知,jupyter lab比jupyter notebook好用多了~@echo off cd /d D:\Skill_Learn\PyLearn\jupyter_lab_workspacecall C:\ProgramData\Anaconda3\Scripts\activate_JSY_Modify20210512.batti原创 2021-05-12 20:34:10 · 589 阅读 · 2 评论 -
python GUI——demo
python GUI选择文件,输出绝对路径,完成后弹出转换完成,点击弹出消息后关闭整个程序,其中,def RunScript():自定义功能import tkinter as tk # 使用Tkinter前需要先导入from tkinter import filedialog as flfrom tkinter import messagebox as mb# 第1步,实例化object,建立窗口windowwindow = tk.Tk() # 第2步,给窗口的可视化起名字window原创 2020-09-16 20:50:46 · 321 阅读 · 0 评论 -
Python之多进程和多线程详解
多进程和多线程详解这篇博客讲解的非常不错,直接拷贝过来,以便后续查找和Threading的比较多进程 Multiprocessing 和多线程 threading 类似, 他们都是在 python 中用来并行运算的. 不过既然有了 threading, 为什么 Python 还要出一个 multiprocessing 呢? 原因很简单, 就是用来弥补 threading 的一些劣势, 比如在 threading 教程中提到的GIL.使用 multiprocessing 也非常简单, 如果对 thre转载 2020-06-23 23:20:32 · 365 阅读 · 0 评论 -
Python小技巧—jupyter notebook脚本生成exe
1、ipyb 转成 pyjupyter notebook(or jupyter lab)脚本转成.py,用jupyter notebook打开,点download as选择py即可,如下图2、将脚本生成exe文件首先需要安装 pyinstaller然后运行一下命令pyinstaller -F (脚本路径+脚本名)...原创 2020-06-23 22:56:29 · 5095 阅读 · 2 评论 -
根据经纬度画轨迹
folium简单应用导入库读取json经纬度数据并画图,保存成html添加鼠标点击地图显示经纬度功能效果合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入导入库import foliumimport os,jsonimport nump原创 2020-05-26 21:53:28 · 3175 阅读 · 4 评论