csv文件怎么转成excel_Java读写excel,excel转成json写入磁盘文件

pom

读写excel主要的dependency

   <dependency>      <groupId>org.apache.poigroupId>      <artifactId>poiartifactId>      <version>3.16version>  dependency>  <dependency>      <groupId>org.apache.poigroupId>      <artifactId>poi-ooxmlartifactId>      <version>3.14version>  dependency>    <dependency>      <groupId>net.sourceforge.jexcelapigroupId>      <artifactId>jxlartifactId>      <version>2.6.10version>  dependency>

json格式读写使用fastjson

<dependency>    <groupId>com.alibabagroupId>    <artifactId>fastjsonartifactId>    <version>1.2.47version>dependency>

完整的pom.xml文件,这里使用的是springboot整合

<?xml  version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">    <modelVersion>4.0.0modelVersion>    <parent>        <groupId>org.springframework.bootgroupId>        <artifactId>spring-boot-starter-parentartifactId>        <version>2.2.1.RELEASEversion>        <relativePath/>     parent>    <groupId>com.examplegroupId>    <artifactId>demoartifactId>    <version>0.0.1-SNAPSHOTversion>    <name>testname>    <description>Demo project for Spring Bootdescription>    <properties>        <java.version>1.8java.version>        <lombok.version>1.18.4lombok.version>        <druid.version>1.1.13druid.version>        <mybatisplus.version>3.0.7.1mybatisplus.version>    properties>    <dependencies>        <dependency>            <groupId>org.springframework.bootgroupId>            <artifactId>spring-boot-starter-webartifactId>        dependency>        <dependency>            <groupId>org.springframework.bootgroupId>            <artifactId>spring-boot-devtoolsartifactId>            <scope>runtimescope>            <optional>trueoptional>        dependency>        <dependency>            <groupId>org.springframework.bootgroupId>            <artifactId>spring-boot-starter-jdbcartifactId>        dependency>        <dependency>            <groupId>com.baomidougroupId>            <artifactId>mybatis-plusartifactId>            <version>${mybatisplus.version}version>        dependency>        <dependency>            <groupId>mysqlgroupId>            <artifactId>mysql-connector-javaartifactId>            <scope>runtimescope>        dependency>        <dependency>            <groupId>com.baomidougroupId>            <artifactId>mybatis-plus-boot-starterartifactId>            <version>${mybatisplus.version}version>            <exclusions>                <exclusion>                    <groupId>com.baomidougroupId>                    <artifactId>mybatis-plus-generatorartifactId>                exclusion>            exclusions>        dependency>        <dependency>            <groupId>org.apache.httpcomponentsgroupId>            <artifactId>httpclientartifactId>            <version>4.3.1version>        dependency>        <dependency>            <groupId>com.alibabagroupId>            <artifactId>druid-spring-boot-starterartifactId>            <version>${druid.version}version>        dependency>        <dependency>            <groupId>com.alibabagroupId>            <artifactId>fastjsonartifactId>            <version>1.2.47version>        dependency>                <dependency>            <groupId>org.apache.poigroupId>            <artifactId>poiartifactId>            <version>3.16version>        dependency>        <dependency>            <groupId>org.apache.poigroupId>            <artifactId>poi-ooxmlartifactId>            <version>3.14version>        dependency>                <dependency>            <groupId>net.sourceforge.jexcelapigroupId>            <artifactId>jxlartifactId>            <version>2.6.10version>        dependency>        <dependency>            <groupId>org.projectlombokgroupId>            <artifactId>lombokartifactId>            <optional>trueoptional>            <version>${lombok.version}version>        dependency>        <dependency>            <groupId>org.springframework.bootgroupId>            <artifactId>spring-boot-starter-testartifactId>            <scope>testscope>            <exclusions>                <exclusion>                    <groupId>org.junit.vintagegroupId>                    <artifactId>junit-vintage-engineartifactId>                exclusion>            exclusions>        dependency>    dependencies>    <build>        <plugins>            <plugin>                <groupId>org.springframework.bootgroupId>                <artifactId>spring-boot-maven-pluginartifactId>            plugin>        plugins>    build>project>

Java代码

在test测试代码中写入excel,将20行20列写入xls中

   @Test    void contextLoads2(){        /**         * 写入Excel         */        //创建工作簿        HSSFWorkbook hssfWorkbook=new HSSFWorkbook();        //创建工作表        HSSFSheet hssfSheet=hssfWorkbook.createSheet("test1");        for(int row=0;row<20;row++){            //创建行            HSSFRow hssfRow=hssfSheet.createRow(row);            for(int col=0;col<20;col++){                //写入单元格                if(row==0){                    hssfRow.createCell(col).setCellValue("col"+col);                }else {                    hssfRow.createCell(col).setCellValue(row+""+col);                }            }        }        File file=new File("d://Excel.xls");        FileOutputStream fileOutputStream;        try {            fileOutputStream = new FileOutputStream(file);            hssfWorkbook.write(fileOutputStream);            fileOutputStream.close();        }catch (IOException E){            E.printStackTrace();        }    }

打开刚刚写入的xls文件

2708bcadb127854778688573f366dd1e.png

在test测试代码中读取刚刚写入的excel的表格并转成json

 @Test    void contextLoads3(){        /**         *读取Excel         * */        File file=new File("d://Excel.xls");        //创建工作簿工作空间        Workbook workbook;        try {            workbook= WorkbookFactory.create(file);            Sheet sheet= workbook.getSheet("test1");            //System.out.println("sheet.getLastRowNum():"+sheet.getLastRowNum());            //System.out.println("sheet.getFirstRowNum():"+sheet.getFirstRowNum());            //List jsonObjectList=new ArrayList<>();            JSONArray jsonObjectList=new JSONArray();            //先获取到最后一行的行数,因为行数从0开始所以再加1            for(int row=0;row1;row++){                Row sheetrow=sheet.getRow(row);                Row firstrow=sheet.getRow(0);                //取得第一行里的单元格数量,即列数                int cols=firstrow.getPhysicalNumberOfCells();                for (int col=0;col                    JSONObject jsonObject=new JSONObject();                    String key=firstrow.getCell(col).getStringCellValue();                    if(row!=0){                        String value=sheetrow.getCell(col).getStringCellValue();                        jsonObject.put(key,value);                        jsonObjectList.add(jsonObject);                    }                    //System.out.print(sheetrow.getCell(col).getStringCellValue()+" ");                }                //System.out.println("");            }            //格式化输出            String jsonObjectList_result= JSONArray.toJSONString(jsonObjectList, SerializerFeature.PrettyFormat,SerializerFeature.WriteMapNullValue,SerializerFeature.WriteDateUseDateFormat);            System.out.println(jsonObjectList_result);        }catch (IOException E){            E.printStackTrace();        }catch (InvalidFormatException e){            e.printStackTrace();        }    }

json格式如下:

[  {    "col0":"10"  },  {    "col1":"11"  },  {    "col2":"12"  },  {    "col3":"13"  },  {    "col4":"14"  },  {    "col5":"15"  },  {    "col6":"16"  },  {    "col7":"17"  },  {    "col8":"18"  },  {    "col9":"19"  },  {    "col10":"110"  },  {    "col11":"111"  },  {    "col12":"112"  },  {    "col13":"113"  },  {    "col14":"114"  },  {    "col15":"115"  },  {    "col16":"116"  },  {    "col17":"117"  },  {    "col18":"118"  },  {    "col19":"119"  },  {    "col0":"20"  },  {    "col1":"21"  },  {    "col2":"22"  },  {    "col3":"23"  },  {    "col4":"24"  },  {    "col5":"25"  },  {    "col6":"26"  },  {    "col7":"27"  },  {    "col8":"28"  },  {    "col9":"29"  },  {    "col10":"210"  },  {    "col11":"211"  },  {    "col12":"212"  },  {    "col13":"213"  },  {    "col14":"214"  },  {    "col15":"215"  },  {    "col16":"216"  },  {    "col17":"217"  },  {    "col18":"218"  },  {    "col19":"219"  },  {    "col0":"30"  },  {    "col1":"31"  },  {    "col2":"32"  },  {    "col3":"33"  },  {    "col4":"34"  },  {    "col5":"35"  },  {    "col6":"36"  },  {    "col7":"37"  },  {    "col8":"38"  },  {    "col9":"39"  },  {    "col10":"310"  },  {    "col11":"311"  },  {    "col12":"312"  },  {    "col13":"313"  },  {    "col14":"314"  },  {    "col15":"315"  },  {    "col16":"316"  },  {    "col17":"317"  },  {    "col18":"318"  },  {    "col19":"319"  },  {    "col0":"40"  },  {    "col1":"41"  },  {    "col2":"42"  },  {    "col3":"43"  },  {    "col4":"44"  },  {    "col5":"45"  },  {    "col6":"46"  },  {    "col7":"47"  },  {    "col8":"48"  },  {    "col9":"49"  },  {    "col10":"410"  },  {    "col11":"411"  },  {    "col12":"412"  },  {    "col13":"413"  },  {    "col14":"414"  },  {    "col15":"415"  },  {    "col16":"416"  },  {    "col17":"417"  },  {    "col18":"418"  },  {    "col19":"419"  },  {    "col0":"50"  },  {    "col1":"51"  },  {    "col2":"52"  },  {    "col3":"53"  },  {    "col4":"54"  },  {    "col5":"55"  },  {    "col6":"56"  },  {    "col7":"57"  },  {    "col8":"58"  },  {    "col9":"59"  },  {    "col10":"510"  },  {    "col11":"511"  },  {    "col12":"512"  },  {    "col13":"513"  },  {    "col14":"514"  },  {    "col15":"515"  },  {    "col16":"516"  },  {    "col17":"517"  },  {    "col18":"518"  },  {    "col19":"519"  },  {    "col0":"60"  },  {    "col1":"61"  },  {    "col2":"62"  },  {    "col3":"63"  },  {    "col4":"64"  },  {    "col5":"65"  },  {    "col6":"66"  },  {    "col7":"67"  },  {    "col8":"68"  },  {    "col9":"69"  },  {    "col10":"610"  },  {    "col11":"611"  },  {    "col12":"612"  },  {    "col13":"613"  },  {    "col14":"614"  },  {    "col15":"615"  },  {    "col16":"616"  },  {    "col17":"617"  },  {    "col18":"618"  },  {    "col19":"619"  },  {    "col0":"70"  },  {    "col1":"71"  },  {    "col2":"72"  },  {    "col3":"73"  },  {    "col4":"74"  },  {    "col5":"75"  },  {    "col6":"76"  },  {    "col7":"77"  },  {    "col8":"78"  },  {    "col9":"79"  },  {    "col10":"710"  },  {    "col11":"711"  },  {    "col12":"712"  },  {    "col13":"713"  },  {    "col14":"714"  },  {    "col15":"715"  },  {    "col16":"716"  },  {    "col17":"717"  },  {    "col18":"718"  },  {    "col19":"719"  },  {    "col0":"80"  },  {    "col1":"81"  },  {    "col2":"82"  },  {    "col3":"83"  },  {    "col4":"84"  },  {    "col5":"85"  },  {    "col6":"86"  },  {    "col7":"87"  },  {    "col8":"88"  },  {    "col9":"89"  },  {    "col10":"810"  },  {    "col11":"811"  },  {    "col12":"812"  },  {    "col13":"813"  },  {    "col14":"814"  },  {    "col15":"815"  },  {    "col16":"816"  },  {    "col17":"817"  },  {    "col18":"818"  },  {    "col19":"819"  },  {    "col0":"90"  },  {    "col1":"91"  },  {    "col2":"92"  },  {    "col3":"93"  },  {    "col4":"94"  },  {    "col5":"95"  },  {    "col6":"96"  },  {    "col7":"97"  },  {    "col8":"98"  },  {    "col9":"99"  },  {    "col10":"910"  },  {    "col11":"911"  },  {    "col12":"912"  },  {    "col13":"913"  },  {    "col14":"914"  },  {    "col15":"915"  },  {    "col16":"916"  },  {    "col17":"917"  },  {    "col18":"918"  },  {    "col19":"919"  },  {    "col0":"100"  },  {    "col1":"101"  },  {    "col2":"102"  },  {    "col3":"103"  },  {    "col4":"104"  },  {    "col5":"105"  },  {    "col6":"106"  },  {    "col7":"107"  },  {    "col8":"108"  },  {    "col9":"109"  },  {    "col10":"1010"  },  {    "col11":"1011"  },  {    "col12":"1012"  },  {    "col13":"1013"  },  {    "col14":"1014"  },  {    "col15":"1015"  },  {    "col16":"1016"  },  {    "col17":"1017"  },  {    "col18":"1018"  },  {    "col19":"1019"  },  {    "col0":"110"  },  {    "col1":"111"  },  {    "col2":"112"  },  {    "col3":"113"  },  {    "col4":"114"  },  {    "col5":"115"  },  {    "col6":"116"  },  {    "col7":"117"  },  {    "col8":"118"  },  {    "col9":"119"  },  {    "col10":"1110"  },  {    "col11":"1111"  },  {    "col12":"1112"  },  {    "col13":"1113"  },  {    "col14":"1114"  },  {    "col15":"1115"  },  {    "col16":"1116"  },  {    "col17":"1117"  },  {    "col18":"1118"  },  {    "col19":"1119"  },  {    "col0":"120"  },  {    "col1":"121"  },  {    "col2":"122"  },  {    "col3":"123"  },  {    "col4":"124"  },  {    "col5":"125"  },  {    "col6":"126"  },  {    "col7":"127"  },  {    "col8":"128"  },  {    "col9":"129"  },  {    "col10":"1210"  },  {    "col11":"1211"  },  {    "col12":"1212"  },  {    "col13":"1213"  },  {    "col14":"1214"  },  {    "col15":"1215"  },  {    "col16":"1216"  },  {    "col17":"1217"  },  {    "col18":"1218"  },  {    "col19":"1219"  },  {    "col0":"130"  },  {    "col1":"131"  },  {    "col2":"132"  },  {    "col3":"133"  },  {    "col4":"134"  },  {    "col5":"135"  },  {    "col6":"136"  },  {    "col7":"137"  },  {    "col8":"138"  },  {    "col9":"139"  },  {    "col10":"1310"  },  {    "col11":"1311"  },  {    "col12":"1312"  },  {    "col13":"1313"  },  {    "col14":"1314"  },  {    "col15":"1315"  },  {    "col16":"1316"  },  {    "col17":"1317"  },  {    "col18":"1318"  },  {    "col19":"1319"  },  {    "col0":"140"  },  {    "col1":"141"  },  {    "col2":"142"  },  {    "col3":"143"  },  {    "col4":"144"  },  {    "col5":"145"  },  {    "col6":"146"  },  {    "col7":"147"  },  {    "col8":"148"  },  {    "col9":"149"  },  {    "col10":"1410"  },  {    "col11":"1411"  },  {    "col12":"1412"  },  {    "col13":"1413"  },  {    "col14":"1414"  },  {    "col15":"1415"  },  {    "col16":"1416"  },  {    "col17":"1417"  },  {    "col18":"1418"  },  {    "col19":"1419"  },  {    "col0":"150"  },  {    "col1":"151"  },  {    "col2":"152"  },  {    "col3":"153"  },  {    "col4":"154"  },  {    "col5":"155"  },  {    "col6":"156"  },  {    "col7":"157"  },  {    "col8":"158"  },  {    "col9":"159"  },  {    "col10":"1510"  },  {    "col11":"1511"  },  {    "col12":"1512"  },  {    "col13":"1513"  },  {    "col14":"1514"  },  {    "col15":"1515"  },  {    "col16":"1516"  },  {    "col17":"1517"  },  {    "col18":"1518"  },  {    "col19":"1519"  },  {    "col0":"160"  },  {    "col1":"161"  },  {    "col2":"162"  },  {    "col3":"163"  },  {    "col4":"164"  },  {    "col5":"165"  },  {    "col6":"166"  },  {    "col7":"167"  },  {    "col8":"168"  },  {    "col9":"169"  },  {    "col10":"1610"  },  {    "col11":"1611"  },  {    "col12":"1612"  },  {    "col13":"1613"  },  {    "col14":"1614"  },  {    "col15":"1615"  },  {    "col16":"1616"  },  {    "col17":"1617"  },  {    "col18":"1618"  },  {    "col19":"1619"  },  {    "col0":"170"  },  {    "col1":"171"  },  {    "col2":"172"  },  {    "col3":"173"  },  {    "col4":"174"  },  {    "col5":"175"  },  {    "col6":"176"  },  {    "col7":"177"  },  {    "col8":"178"  },  {    "col9":"179"  },  {    "col10":"1710"  },  {    "col11":"1711"  },  {    "col12":"1712"  },  {    "col13":"1713"  },  {    "col14":"1714"  },  {    "col15":"1715"  },  {    "col16":"1716"  },  {    "col17":"1717"  },  {    "col18":"1718"  },  {    "col19":"1719"  },  {    "col0":"180"  },  {    "col1":"181"  },  {    "col2":"182"  },  {    "col3":"183"  },  {    "col4":"184"  },  {    "col5":"185"  },  {    "col6":"186"  },  {    "col7":"187"  },  {    "col8":"188"  },  {    "col9":"189"  },  {    "col10":"1810"  },  {    "col11":"1811"  },  {    "col12":"1812"  },  {    "col13":"1813"  },  {    "col14":"1814"  },  {    "col15":"1815"  },  {    "col16":"1816"  },  {    "col17":"1817"  },  {    "col18":"1818"  },  {    "col19":"1819"  },  {    "col0":"190"  },  {    "col1":"191"  },  {    "col2":"192"  },  {    "col3":"193"  },  {    "col4":"194"  },  {    "col5":"195"  },  {    "col6":"196"  },  {    "col7":"197"  },  {    "col8":"198"  },  {    "col9":"199"  },  {    "col10":"1910"  },  {    "col11":"1911"  },  {    "col12":"1912"  },  {    "col13":"1913"  },  {    "col14":"1914"  },  {    "col15":"1915"  },  {    "col16":"1916"  },  {    "col17":"1917"  },  {    "col18":"1918"  },  {    "col19":"1919"  }]

将格式化的json写入json文件中存入磁盘

@Test    void contextLoads3(){        /**         *读取Excel         * */        File file=new File("d://Excel.xls");        //创建工作簿工作空间        Workbook workbook;        try {            workbook= WorkbookFactory.create(file);            Sheet sheet= workbook.getSheet("test1");            //System.out.println("sheet.getLastRowNum():"+sheet.getLastRowNum());            //System.out.println("sheet.getFirstRowNum():"+sheet.getFirstRowNum());            //List jsonObjectList=new ArrayList<>();            JSONArray jsonObjectList=new JSONArray();            //先获取到最后一行的行数,因为行数从0开始所以再加1            for(int row=0;row1;row++){                Row sheetrow=sheet.getRow(row);                Row firstrow=sheet.getRow(0);                //取得第一行里的单元格数量,即列数                int cols=firstrow.getPhysicalNumberOfCells();                for (int col=0;col                    JSONObject jsonObject=new JSONObject();                    String key=firstrow.getCell(col).getStringCellValue();                    if(row!=0){                        String value=sheetrow.getCell(col).getStringCellValue();                        jsonObject.put(key,value);                        jsonObjectList.add(jsonObject);                    }                    //System.out.print(sheetrow.getCell(col).getStringCellValue()+" ");                }                //System.out.println("");            }            //格式化输出            String jsonObjectList_result= JSONArray.toJSONString(jsonObjectList, SerializerFeature.PrettyFormat,SerializerFeature.WriteMapNullValue,SerializerFeature.WriteDateUseDateFormat);            System.out.println(jsonObjectList_result);            File json_file=new File("d://json1.json");            FileOutputStream fileOutputStream=new FileOutputStream(json_file);            //第一种            //fileOutputStream.write(jsonObjectList_result.getBytes());            //第二种            OutputStreamWriter outputStreamWriter=new OutputStreamWriter(fileOutputStream,"UTF-8");            outputStreamWriter.write(jsonObjectList_result);            //fileOutputStream.close();            outputStreamWriter.close();        }catch (IOException E){            E.printStackTrace();        }catch (InvalidFormatException e){            e.printStackTrace();        }    }

写入json文件的结果

d34024123c34ca10867e363453ed3dd3.png

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/395070.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前端做CRM管理系统是做什么_代办行业的CRM客户关系管理系统应该是什么样子的?...

随着互联网的深耕细化&#xff0c;很多企业也在不断优化自己的办公方式&#xff0c;以优化企业的办公流程&#xff0c;提高企业的办事效率。因此实现办公自动化&#xff0c;或者说实现数字化办公就需要逐渐提上日程。今天给大家讲讲可以帮助代办行业实现办公自动化的产品&#…

蓝牙 sig base uuid_蓝牙模块采用陶瓷天线和PCB天线的区别

一、陶瓷天线陶瓷天线是一种适合于蓝牙设备使用的小型化天线,又分为块状陶瓷天线和多层陶瓷天线。陶瓷天线占用空间很小、性能比较好&#xff1b; 带宽窄&#xff0c;比较难做到多频段&#xff1b;有效提高主板的整合度&#xff0c;并可降低天线对ID的限制&#xff1b;需要在主…

app启动页自动跳转源码_关于移动端App启动页的策划方案

App启动页是指app在启东时需要加载必要的运行环境和配置&#xff0c;在这个过程中提示用户等待的一个过渡页面。在产品经理眼里启动页是app给予用户重要的第一印象&#xff1b;也是App最重要的黄金页面之一&#xff0c;所有用户100%都会看到的页面。启动页适合用来做以下几个事…

java 如何排查内存溢出_java 内存溢出排查

测试代码&#xff0c;如下示例&#xff1a;import java.util.ArrayList;import java.util.List;/*** Description 测试内存溢出, 启动时设置参数&#xff0c;最大堆内存为1m, 内存溢出时dump出内存文件 -Xmx1m -XX:HeapDumpOutOfMemoryError* Author luzy* Date 2018/10/5 11:0…

《企业级ios应用开发实战》一2.2 iOS框架介绍

2.2 iOS框架介绍 iOS衍生自Mac OS X的成熟内核&#xff0c;但iOS操作系统更紧凑和高效&#xff0c;支持iPhone和iPod Touch的硬件。iOS继承了Mac OS X的风格&#xff0c;包括&#xff1a;统一的OS X 内核&#xff0c;针对网络的BSD套接字&#xff0c;以及Objective-C和C/C编译器…

python的opencv 车牌识别 开源_毕节进出口车牌识别系统怎么样

毕节进出口车牌识别系统怎么样 gzheu8il毕节进出口车牌识别系统怎么样 系统拓扑图如下&#xff1a;该系统以社区中心机房为枢纽&#xff0c;有机的将智慧家居住户、社区数字化服务、物业数字化管理、社区智能化管理结合起来&#xff0c;真正的实现&#xff1a;住户与住户之间的…

java try catch陷阱_Java异常处理最佳实践及陷阱防范

原标题&#xff1a;Java异常处理最佳实践及陷阱防范出自《深夜里的程序猿》作者&#xff1a;wangzenghuang前言不管在我们的工作还是生活中&#xff0c;总会出现各种“错误”&#xff0c;各种突发的“异常”。无论我们做了多少准备&#xff0c;多少测试&#xff0c;这些异常总会…

vivo手机怎么投屏到电脑_投屏软件电脑加手机投屏软件投屏

优秀的资源工具可以让你事半功倍&#xff01;本号文内资源已经手工转存整理&#xff0c;安全起见&#xff0c;回复 “领取资源” 按提示自助领取。今天分享的是一家公司出品的投屏神器。为避免被举报这里就不说出软件名了。它可以在局域网内把手机的屏幕投到电脑上&#xff0c;…

How to upload windows Sysprep Files to VMware vCenter Server Appliance 6.5(vC

vCSA5.5中可以登录到端口5480中去上传&#xff0c;vCSA 6.0以后就不支持了。但是可以通过Enable “Pi Shell”来做。 首先确保vCSA的ssh可用&#xff1a; 0. Make sure that SSH in enabled on the VCSA. Home > Administration > System configuration (under Deploymen…

Vivado Design Suite用户指南之约束的使用第二部分(约束方法论)

Constraints Methodology&#xff08;约束方法论&#xff09; 关于约束方法论 设计约束定义了编译流程必须满足的要求&#xff0c;以使设计在板上起作用。 并非所有步骤都使用所有约束在编译流程中。 例如&#xff0c;物理约束仅在实现步骤期间使用&#xff08;即&#xff0c;由…

eval函数 php_PHP的一句话木马代码和函数eval的简介

大清早的刚从床上爬起来。雨落就跑来找我问我这段代码是什么意思<?php eval($_POST[pp]);?>看了一下&#xff0c;post接收pp的值&#xff0c;抑制错误输出。呵呵开个玩笑&#xff0c;其实不是这么简单&#xff0c;这是一段PHP木马代码&#xff0c;也就是我们所说的后门…

linux安装python_Python - 爱豆

Python下载Python最新源码&#xff0c;二进制文档&#xff0c;新闻资讯等可以在Python的官网查看到&#xff1a;Python官网&#xff1a;你可以在以下链接中下载 Python 的文档&#xff0c;你可以下载 HTML、PDF 和 PostScript 等格式的文档。Python文档下载地址&#xff1a;doc…

ppt复制切片器_零基础小白自学PPT快速入门到精通(上)

零基础小白如何自学PPT快速入门到精通呢&#xff1f;40个保姆级小技巧助力你高效掌握PPT基础操作&#xff01;PPT在学习与工作中的应用越来越广泛&#xff1a;在学校时免不了要做毕业答辩、毕业论文&#xff0c;工作中时常要进行复盘总结、工作汇报、推广方案&#xff0c;有时甚…

网络安全初创公司SafeBreach获1500万美元A轮融资

今天&#xff0c;网络安全初创公司 SafeBreach 宣布完成1500 万美元 A 轮融资&#xff0c;新投资者德国电信、惠普公司、 Maverick Ventures 及现有投资者 Sequoia Capital 和 Shlomo Kramer 参投。公司计划利用本轮融资加大研发力度&#xff0c;扩大销售及营销团队&#xff0c…

了解Linux操作系统发展阶段

一、硬件与软件发展历史 计算机由硬件和软件组成结构 二、Linux的发展史 Linux 操作系统是Unix操作系统的一种克隆系统。它诞生于1991年的10月5日&#xff08;只是第一次正式向外公布的时间&#xff09;。以后借助于Internet网络&#xff0c;并经过全世界各地计算机爱好者的共同…

c gui qt 4编程第二版_面试官问Linux下如何编译C程序,如何回答?为你编译演示

文章来源&#xff1a;嵌入式大杂烩 作者&#xff1a;ZhengNLWindows下常用IDE来编译&#xff0c;Linux下直接使用gcc来编译&#xff0c;编译过程是Linux嵌入式编程的基础&#xff0c;也是嵌入式高频基础面试问题。一、命令行编译及各个细分编译过程hello.c示例代码&#xff1a;…

css text-align-last设置末尾文本对齐方式

text-align-last&#xff1a;auto | start | end | left | right | center | justify auto&#xff1a; 无特殊对齐方式。 left&#xff1a; 内容左对齐。 center&#xff1a; 内容居中对齐。 right&#xff1a; 内容右对齐。 justify&#xff1a; 内容两端对齐。 start&#x…

secoclient隧道保活超时或协商超时_推荐:承德市隧道led大屏厂家电话【联丰智慧科技】...

通过为大型隧道施工建设搭建全覆盖式的定位&#xff0c;可以有效施工的效率、项目现场的保障能力。安装隧道门禁能解决哪些问题&#xff1f;近年来&#xff0c;我国交通建设正处于高速发展的阶段&#xff0c;在交通建设中&#xff0c;工程安防工作也越发受到&#xff0c;越来越…

作业,两次实验

实验一&#xff1a; 1 编程打印5行的倒三角形&#xff0c;第一行打印9个*&#xff0c;第二行7个*&#xff0c;……第5行打印1个* #include<stdio.h>int main(){printf("*********\n *******\n *****\n ***\n *\n");return 0;} 总结 注意换行以及位置的…

javaweb和ajax使用查询出来的数据做下拉菜单_区块链浏览器实用指南篇:利用链上数据把握减半行情...

进入2020年&#xff0c;加密货币市场最热的话题当属“减半”了。在减半行情的推动下&#xff0c;以BTC为首的减半币种展现出了极强的上行趋势。如何抓住这一波行情&#xff0c;评估正确时机&#xff1f;当然&#xff0c;这个问题的答案可以说是争议纷纷&#xff0c;但有一个参考…