Hello
hello
Python 自动化修改word的案例
from docx import Document from docx.shared import Cm from docx.enum.text import WD_ALIGN_PARAGRAPH import re document=Document(r"g:\CS\Python Scripts\表扬信.docx")首先对段落格式进行修改,docx默认标题也属于段落,因此“表扬信”是第一段paragraphs=document.paragraphs paragraphs[2].paragraph_format.first_line_indent=Cm(0.74) paragraphs[3].paragraph_format.left_indent=Cm(0.74) paragraphs[4].paragraph_format.alignment=WD_ALIGN_PARAGRAPH.RIGHT paragraphs[4].paragraph_format.right_indent=Cm(2) paragraphs[5].paragraph_format.alignment=WD...
Python 自动化修改word的案例
from docx import Document from docx.shared import Cm from docx.enum.text import WD_ALIGN_PARAGRAPH import re document=Document(r"g:\CS\Python Scripts\表扬信.docx")首先对段落格式进行修改,docx默认标题也属于段落,因此“表扬信”是第一段paragraphs=document.paragraphs paragraphs[2].paragraph_format.first_line_indent=Cm(0.74) paragraphs[3].paragraph_format.left_indent=Cm(0.74) paragraphs[4].paragraph_format.alignment=WD_ALIGN_PARAGRAPH.RIGHT paragraphs[4].paragraph_format.right_indent=Cm(2) paragraphs[5].paragraph_format.alignment=WD...

JSON格式进行数据交换的众多优点
JSON格式进行数据交换的众多优点 json 是轻量级的数据交换格式 人们读写更加容易 易于机器的解析和生成 能够通过JavaScript中eval()函数解析JSON JSON支持多语言。包括:ActionScript, C, C#, ColdFusion, E, Java, JavaScript, ML, Objective CAML, Perl, PHP, Python, Rebol, Ruby, and Lua. JSON语法是一种用于传输和生成数据的协定,很类似于C家族的语言,所以很容易被C家族的语言所解析。 json对象:对象包含再{}之间 json属性:采用Key-Value对来表示。属性之间使用逗号分开。 string : value json数组:数组存放再[]之间 [ elements ] json元素:元素之间用逗号分开 json值:值可以是字符串,数字,对象,数组,true,false,null <font style="vertical-align: inherit;">{“菜单”: { “id”:“文件”, “价值”:“文件:”, “弹出窗口”: { ...

JSON格式进行数据交换的众多优点
JSON格式进行数据交换的众多优点 json 是轻量级的数据交换格式 人们读写更加容易 易于机器的解析和生成 能够通过JavaScript中eval()函数解析JSON JSON支持多语言。包括:ActionScript, C, C#, ColdFusion, E, Java, JavaScript, ML, Objective CAML, Perl, PHP, Python, Rebol, Ruby, and Lua. JSON语法是一种用于传输和生成数据的协定,很类似于C家族的语言,所以很容易被C家族的语言所解析。 json对象:对象包含再{}之间 json属性:采用Key-Value对来表示。属性之间使用逗号分开。 string : value json数组:数组存放再[]之间 [ elements ] json元素:元素之间用逗号分开 json值:值可以是字符串,数字,对象,数组,true,false,null <font style="vertical-align: inherit;">{“菜单”: { “id”:“文件”, “价值”:“文件:”, “弹出窗口”: { ...
「Move to Earn」游戏STEPN App将支持BNB支付
3月 28 日,「Move to Earn」游戏 STEPN 在其官方社交媒体平台发布预告,与 Binance 达成合作,其 APP 将支持使用 BNB 进行支付交易。
「Move to Earn」游戏STEPN App将支持BNB支付
3月 28 日,「Move to Earn」游戏 STEPN 在其官方社交媒体平台发布预告,与 Binance 达成合作,其 APP 将支持使用 BNB 进行支付交易。
百度空间文章下载
-- coding: utf8 --import urllib import re,os,sys,time def articleDownload(username,pageCount): #判断传入的参数是否合法 if username == "" : username = "bspeng922" if pageCount == "" or int(pageCount)<0 : pageCount = 0 else: pageCount = int(pageCount) + 1 print "Blog: http://hi.baidu.com/new/%s"%username#文件保存目录,可修改 saveDrive = "E:\\test" #directory to save html files #html文件保存目录 if not os.path.exists(saveDrive) : os.mkdir(saveDrive) mydrive = os.path.join(saveDrive,username) if not os.path.exists(mydrive)...
百度空间文章下载
-- coding: utf8 --import urllib import re,os,sys,time def articleDownload(username,pageCount): #判断传入的参数是否合法 if username == "" : username = "bspeng922" if pageCount == "" or int(pageCount)<0 : pageCount = 0 else: pageCount = int(pageCount) + 1 print "Blog: http://hi.baidu.com/new/%s"%username#文件保存目录,可修改 saveDrive = "E:\\test" #directory to save html files #html文件保存目录 if not os.path.exists(saveDrive) : os.mkdir(saveDrive) mydrive = os.path.join(saveDrive,username) if not os.path.exists(mydrive)...