SVG预制舱舱体是采用钢结构制作的,舱体底部采用不锈钢或环氧树脂隔板密封,防电缆沟管潮气、腐蚀气体及小动物。
SVG预制舱的内部根据实际需要配置消防、安防、暖通、照明、通信、智能辅助控制系统、集中配线架(舱)等辅助设施,其环境满足变电站SVG设备运行条件及变电站运行调试人员现场作业的要求。预制舱内安装SVG无功补偿柜、功率柜、启动柜、舱体辅助设施等,在工厂内完成相关安装、配线、调试等工作,并作为一个整体运输至工程现场。
《无上至尊工厂》百度网盘txt最新全集下载:
链接:
?pwd=8r87 提取码:8r87
简介:《无上至尊工厂》的作者是醉酒探月。
使用Python批量转换SVG文件为PNG或PDF文件
命令行方式
# Convert to pdf, standard output
cairosvg test.svg
# Convert to png, standard output
cairosvg test.svg -f png
# Convert to ps, write to test.ps
cairosvg test.svg -o test.ps
# Convert an SVG string to pdf, standard output
echo "svg height='30' width='30'\
text y='10'123/text\
/svg" | cairosvg -1234567891011121312345678910111213
2.2 python脚本
#! encoding:UTF-8
import cairosvg
import os
def exportsvg(fromDir, targetDir, exportType):
print "开始执行转换命令..."
num = 0
for a,f,c in os.walk(fromDir):#使用walk遍历源目录
for fileName in c:
path = os.path.join(a,fileName)#获得文件路径
if os.path.isfile(path) and fileName[-3:] == "svg":#判断文件是否为svg类型
num += 1
fileHandle = open(path)
svg = fileHandle.read()
fileHandle.close()
exportPath = os.path.join(targetDir, fileName[:-3] + exportType)#生成目标文件路径
exportFileHandle = open(exportPath,'w')
if exportType == "png":
try:
cairosvg.svg2png(bytestring=svg, write_to=exportPath)#转换为png文件
except:
print "error in convert svg file : %s to png."%(path)
elif exportType == "pdf":
try:
cairosvg.svg2pdf(bytestring=svg, write_to=exportPath)#转换为pdf文件
except:
print "error in convert svg file: %s to pdf."%(path)
exportFileHandle.close()
print "Success Export ", exportType, " - " , exportPath
print "已导出 ", num, "个文件"#统计转换文件数量
#---------------------------------------
svgDir = '/home/ubuntu/tools/icons'#svg文件夹路径
exportDir = '/home/ubuntu/tools/icons1'#目的文件夹路径
exportFormat = 'png'#pdf#转换类型
if not os.path.exists(exportDir):
os.mkdir(exportDir)
exportsvg(svgDir, exportDir, exportFormat)#转换主函数