相关文章
python启动办公软件进程(word、excel、ppt、以及wps的et、wps、wpp)
复制代码 代码如下:#-*- coding:utf-8 -*- from win32com.client import Dispatch import time def start_of...
Python2.x利用commands模块执行Linux shell命令
用Python写运维脚本时,经常需要执行linux shell的命令,Python中的commands模块专门用于调用Linux shell命令,并返回状态和结果,下面是commands...
python3字符串操作总结
介绍Python常见的字符串处理方式 字符串截取 >>>s = 'hello' >>>s[0:3] 'he' >>>s[:...
python 将列表中的字符串连接成一个长路径的方法
今天实习公司分配了一个数据处理的任务。在将列表中的字符串连接成一个长路径时,我遇到了如下问题: import os path_list = ['first_directory',...
Python利用Django如何写restful api接口详解
前言 用Python如何写一个接口呢,首先得要有数据,可以用我们在网站上爬的数据,在上一篇文章中写了如何用Python爬虫,有兴趣的可以看看:/post/141661.htm 大量的数...
