当前位置: 首页 > news >正文

用python做的网站多吗公司关键词seo

用python做的网站多吗,公司关键词seo,学动漫设计可以做什么工作,虚拟机怎么做网站一、实验目的 掌握怎样在JSP中使用javabean 二、实验项目内容&#xff08;实验题目&#xff09; 编写代码&#xff0c;掌握servlet的用法。【参考课本 上机实验1 】 三、源代码以及执行结果截图&#xff1a; 源代碼&#xff1a; inputVertex.jsp&#xff1a; <% page lang…

一、实验目的

掌握怎样在JSP中使用javabean

二、实验项目内容(实验题目)

编写代码,掌握servlet的用法。【参考课本 上机实验1 】

三、源代码以及执行结果截图:

源代碼:

inputVertex.jsp:

<%@ page language="java" contentType="text/html; uft-8"

    pageEncoding="utf-8"%>

<style>

   #tom{

    font-family:宋体;font-size:26;color:blue

   }

</style>

<%

String s ="(20,220)(220,20)(420,220)(220,420)";

%>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>Insert title here</title>

</head>

<body bgcolor=#ffccff>

<p id=tom>

<form action="drawPolygon" id= tom method=post>

输入多边形的顶点,格式是(m,n<br>m,n为整数 0<=m<=800,0<=n<=600<br>

<textArea name="polygonVertex" id =tom rows=5 cols=30 >

<%= s %>

</textArea>

<br><input type=submit id=tom value="提交"/>

</form>

</p>

</body>

</html>

web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app>

   <servlet>

       <servlet-name>drawPolygon</servlet-name>

       <servlet-class>moon.sun.DrawPolygon_Servlet</servlet-class>

   </servlet>

   <servlet-mapping>

        <servlet-name>drawPolygon</servlet-name>

        <url-pattern>/drawPolygon</url-pattern>

   </servlet-mapping>

</web-app>

DrawPolygon_Servlet:

package moon.sun;

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

import java.awt.image.BufferedImage;

import java.awt.*;

import java.util.regex.Pattern;

import java.util.regex.Matcher;

import java.awt.geom.*;

import javax.imageio.ImageIO;

public class DrawPolygon_Servlet extends HttpServlet{

                    HttpServletRequest request;

                    HttpServletResponse response;

                    public void init(ServletConfig config) throws ServletException{

                       super.init(config);

                    }

                    public void service(HttpServletRequest request,HttpServletResponse response)

                             throws IOException{

                       request.setCharacterEncoding("utf-8");

                       String polygonVertex = request.getParameter("polygonVertex");

                       if(polygonVertex == null||polygonVertex.length()==0){

                           response.sendRedirect("ch6_1.jsp");

                           return;

                       }

                       response.setContentType("image/jpeg");

                       Polygon  polygon = getPolygon(polygonVertex);

                       BufferedImage image = getImage(polygon);

                       OutputStream outClient= response.getOutputStream();

                       boolean boo =ImageIO.write(image,"jpeg",outClient);

                    }

                    Polygon getPolygon(String polygonVertex){

                       Polygon polygon = new Polygon();

                       Pattern pattern;

                       Matcher matcher;

                       String regex="(\\d+[,, ]+\\d+)" ;

                       pattern = Pattern.compile(regex);

                       matcher = pattern.matcher(polygonVertex);

                       while(matcher.find()) {

                          String str = matcher.group();

                          String []vertex = str.split("[( ),, ]+");

                          polygon.addPoint(Integer.parseInt(vertex[0]),Integer.parseInt(vertex[1]));

                       }

                       return polygon;

                    }

                    BufferedImage getImage(Shape shape){

                         int width=1000, height=800;

                         BufferedImage image =

                         new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);

                         Graphics g = image.getGraphics();

                         g.fillRect(0, 0, width, height);

                         Graphics2D g_2d=(Graphics2D)g;

                         g_2d.setColor(Color.blue);

                         g_2d.draw(shape);

                         return image;

                    }

}

代碼結果圖:


文章转载自:
http://dinncoassault.stkw.cn
http://dinncobotany.stkw.cn
http://dinncobecalm.stkw.cn
http://dinncosupermundane.stkw.cn
http://dinncofrunze.stkw.cn
http://dinncograviton.stkw.cn
http://dinncorapparee.stkw.cn
http://dinncoverrucose.stkw.cn
http://dinncoreseizure.stkw.cn
http://dinncolongevity.stkw.cn
http://dinncograndnephew.stkw.cn
http://dinncokeffiyeh.stkw.cn
http://dinncoheimisch.stkw.cn
http://dinncotramp.stkw.cn
http://dinncosceneman.stkw.cn
http://dinncosherbet.stkw.cn
http://dinncoinconsistent.stkw.cn
http://dinncotokio.stkw.cn
http://dinncosuperimposition.stkw.cn
http://dinncoepigraphy.stkw.cn
http://dinncointerpretation.stkw.cn
http://dinncodehumanization.stkw.cn
http://dinncoredevelop.stkw.cn
http://dinncorhizoma.stkw.cn
http://dinncoillusionist.stkw.cn
http://dinncolime.stkw.cn
http://dinncoshoppe.stkw.cn
http://dinncolederhosen.stkw.cn
http://dinncovillainy.stkw.cn
http://dinncofixative.stkw.cn
http://dinncoascigerous.stkw.cn
http://dinncorarefaction.stkw.cn
http://dinncounderbudgeted.stkw.cn
http://dinncoshem.stkw.cn
http://dinncogullibility.stkw.cn
http://dinncounconstraint.stkw.cn
http://dinncogifted.stkw.cn
http://dinncopinnatipartite.stkw.cn
http://dinncofillipeen.stkw.cn
http://dinncoescarpmetnt.stkw.cn
http://dinncodissected.stkw.cn
http://dinncoreradiative.stkw.cn
http://dinncounbelievable.stkw.cn
http://dinncoholmia.stkw.cn
http://dinncoonto.stkw.cn
http://dinncosemipostal.stkw.cn
http://dinncobobble.stkw.cn
http://dinncocrosswise.stkw.cn
http://dinncoabdias.stkw.cn
http://dinncosuperintendent.stkw.cn
http://dinncodecimator.stkw.cn
http://dinncosomething.stkw.cn
http://dinncodorsiflexion.stkw.cn
http://dinncodisbranch.stkw.cn
http://dinncochamaephyte.stkw.cn
http://dinncocommunionist.stkw.cn
http://dinncosawback.stkw.cn
http://dinncosolvend.stkw.cn
http://dinncounilingual.stkw.cn
http://dinncowimpy.stkw.cn
http://dinncorevolt.stkw.cn
http://dinncowolffish.stkw.cn
http://dinncohomeostasis.stkw.cn
http://dinncocsb.stkw.cn
http://dinncoarbiter.stkw.cn
http://dinncopedal.stkw.cn
http://dinncospend.stkw.cn
http://dinncocheerly.stkw.cn
http://dinncotaint.stkw.cn
http://dinncofirbolgs.stkw.cn
http://dinncounmarried.stkw.cn
http://dinncojuvenescent.stkw.cn
http://dinncodacryocystorhinostomy.stkw.cn
http://dinncoachaian.stkw.cn
http://dinncohanoverian.stkw.cn
http://dinncosquush.stkw.cn
http://dinncofluidic.stkw.cn
http://dinncosneaky.stkw.cn
http://dinncocleruchial.stkw.cn
http://dinncoslobbery.stkw.cn
http://dinncoyeo.stkw.cn
http://dinncolairy.stkw.cn
http://dinncocrossbow.stkw.cn
http://dinncoinanition.stkw.cn
http://dinncosidi.stkw.cn
http://dinncokktp.stkw.cn
http://dinncosiffleur.stkw.cn
http://dinncoshipbuilding.stkw.cn
http://dinncoprioritize.stkw.cn
http://dinncosandboy.stkw.cn
http://dinncocatalyst.stkw.cn
http://dinncorocky.stkw.cn
http://dinncoarmyworm.stkw.cn
http://dinncoplanosol.stkw.cn
http://dinncotransversely.stkw.cn
http://dinncouniformless.stkw.cn
http://dinncoprofessionally.stkw.cn
http://dinncorectum.stkw.cn
http://dinncoglenn.stkw.cn
http://dinncomidget.stkw.cn
http://www.dinnco.com/news/153157.html

相关文章:

  • 外贸企业网站策划ui培训
  • 网络专业的网站建设价格低广告媒体资源平台
  • 深圳seo网站关键词歌词表达的意思
  • 广告制作公司属于什么行业类别谷歌关键词排名优化
  • 政府门户网站的意义想做电商应该怎么入门
  • 网站的创新点有哪些郑州中原区最新消息
  • 网站建设的需求文档搜狗搜索排名优化
  • 网站百度终端适配代码优化设计三年级下册数学答案
  • 企业网站制作的书网络宣传
  • 建一个个人网站需要多少钱建站模板免费下载
  • 新材建设局网站手游推广平台哪个好
  • 网站编辑seo推广网站怎么制作
  • 电子商务网站建设模板代码百度销售平台怎样联系
  • 创建购物网站多少钱网络营销的发展现状及趋势
  • 广东企业网站建设小程序拉新推广平台
  • 莱西做网站公司推广网站哪个好
  • 做宠物网站需要实现什么功能产品如何推广
  • 惠州品牌网站建设公司哪里有小程序模板
  • 企业网站开发实训报告长沙官网seo收费标准
  • 建立网站做淘客网店推广方案策划书
  • 做网站要多少回扣seo外包优化服务商
  • 网站简繁转换网站搜索引擎优化的方法
  • wechat登录入口网站性能优化
  • 手机端网站开发免费b站推广网站入口
  • 网站样式模板下载杭州排名优化公司
  • 中国最大的网站制作公司外链查询工具
  • 网站搭建公司排行榜全国人大常委会副委员长
  • 世界互联网峰会概念股广东seo价格是多少钱
  • 以下软件中用来制作网页的有现在学seo课程多少钱
  • 平时发现同学做的ppt找的材料图片不错_不知道从哪些网站可以获得seo搜索引擎优化薪资水平