201819102032李秀颖网站动态开发作业三

<%
%>
<form action="index.jsp" method="get">
    <h2>一、判断</h2><br>

     <table>
    <tr>
      <td></td><td>正确</td><td>错误</td>
    </tr>
    <tr>
      <td>1.南北美洲之间的分界线是巴拿马运河</td><td> <input type="radio" name="pd1" id="pd1" value="1"></td><td><input type="radio" name="pd1" id="pd2"value="2"></td>
    </tr>
    <tr>
      <td>2.人的全面发展虽与社会发展相互促进,但是二者并不在同一过程实现。</td><td> <input type="radio" name="pd2"value="1"></td><td><input type="radio" name="pd2"value="2"></td>
    </tr>
    <tr>
      <td>3.格林兰岛是世界上最大的岛屿。</td><td> <input type="radio" name="pd3"value="1"></td><td><input type="radio" name="pd3"value="2"></td>
    </tr>
    <tr>
      <td>4.东南亚最长的国际性河流是湄公河&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td> <input type="radio" name="pd4"value="1"></td><td><input type="radio" name="pd4"value="2"></td>
    </tr>
    <tr>
      <td>5.四大名茶之一的龙井茶产地是苏州</td><td> <input type="radio" name="pd5"value="1"></td><td><input type="radio" name="pd5"value="2"></td>
    </tr>
  </table>
    <h2>二、选择</h2><br>
    <table>
        <tr><td colspan="4"> 1.下列思想家中权力政治观的代表人物是</td></tr>
        <tr><td><input type="radio" name="xz1"value="1">A、孔子</td><td><input type="radio" name="xz1"value="2">B、荀子</td>
            <td><input type="radio" name="xz1"value="3">C、庄子</td><td><input type="radio" name="xz1"value="4">D、韩非</td></tr>
        <tr><td colspan="4"> 2.政治学名著《政治学》的作者是</td></tr>
        <tr><td><input type="radio" name="xz2"value="1">A、柏拉图</td><td><input type="radio" name="xz2"value="2">B、苏格拉底</td>
            <td><input type="radio" name="xz2"value="3"> C、亚里士多德</td><td><input type="radio" name="xz2"value="4">D、西塞罗</td></tr>
        <tr><td colspan="4"> 3.政治概念的提出,始于人类文明史上的()社会时期</td></tr>
        <tr><td>  <input type="radio" name="xz3"value="1">A、封建</td><td><input type="radio" name="xz3"value="2">B、奴隶</td>
            <td><input type="radio" name="xz3"value="3"> C、资本主义</td><td><input type="radio" name="xz3"value="4">D、原始</td></tr>
        <tr><td colspan="4">   4.中国古代关于政治的研究主要围绕君主的()而展开</td></tr>
        <tr><td> <input type="radio" name="xz4"value="1">A、皇位继承</td><td><input type="radio" name="xz4"value="2">B治民之术</td>
            <td><input type="radio" name="xz4"value="3"> C、统治术</td><td><input type="radio" name="xz4"value="4">D、治国之道</td></tr>
        <tr><td colspan="4"> 5.亚里士多德认为政治的最高形式就是</td></tr>
        <tr><td> <input type="radio" name="xz5"value="1">A、城市</td><td><input type="radio" name="xz5"value="2">B、国家</td>
            <td><input type="radio" name="xz5"value="3"> C、法律</td><td><input type="radio" name="xz5"value="4">D、民主</td></tr>
    </table>
    <h2>三、多选</h2><br>
    1.古罗马时代人们对政治问题的思考主要体现在对()的研究当中<br>
    <input type="checkbox" name="dx1" value="1">A、法律<br>
    <input type="checkbox" name="dx1"value="2">B、城邦<br>
    <input type="checkbox" name="dx1"value="3">C、社会<br>
    <input type="checkbox" name="dx1"value="4">D、国家<br>
    <input type="checkbox" name="dx1"value="5">E、人民<br>
    2.古典政治学时代政治学研究的主题是关于()<br>
    <input type="checkbox" name="dx2"value="1">A、直接民主理论<br>
    <input type="checkbox" name="dx2"value="2">B、城市国家的观念<br>
    <input type="checkbox" name="dx2"value="3">C、城邦的理论<br>
    <input type="checkbox" name="dx2"value="4">D、法律<br>
    <input type="checkbox" name="dx2"value="5">E、世界国家论<br>
    3.西方现代政治学的研究方法主要有 ( )<br>
    <input type="checkbox" name="dx3"value="1">A、政治沟通分析方法<br>
    <input type="checkbox" name="dx3"value="2">B、心理研究方法<br>
    <input type="checkbox" name="dx3"value="3">C、政治系统分析<br>
    <input type="checkbox" name="dx3"value="4">D、社会学研究方法<br>
    4.中国古代的法家主张,政治之道在于(),即政治权利的获取、保持和运用<br>
    <input type="checkbox" name="dx4"value="1">A、法<br>
    <input type="checkbox" name="dx4"value="2">B、势<br>
    <input type="checkbox" name="dx4"value="3">C、变<br>
    <input type="checkbox" name="dx4"value="4">D、术<br>
    5”科学主义“政治学时代主要的研究方法是( )<br>
    <input type="checkbox" name="dx5"value="1">A、经验主义<br>
    <input type="checkbox" name="dx5"value="2">B、君主立宠<br>
    <input type="checkbox" name="dx5"value="3">C、自由主义<br>
    <input type="checkbox" name="dx5"value="4">D、人民主权<br>
    <input type="submit" value="提交">
</form>

在这里插入图片描述

<%  int sum=0;
  String t1=request.getParameter("pd1");
  String t2=request.getParameter("pd2");
  String t3=request.getParameter("pd3");
  String t4=request.getParameter("pd4");
  String t5=request.getParameter("pd5");
  String t6=request.getParameter("xz1");
  String t7=request.getParameter("xz2");
  String t8=request.getParameter("xz3");
  String t9=request.getParameter("xz4");
  String t10=request.getParameter("xz5");
  String t11[]=request.getParameterValues("dx1");
  String t12[]=request.getParameterValues("dx2");
  String t13[]=request.getParameterValues("dx3");
  String t14[]=request.getParameterValues("dx4");
  String t15[]=request.getParameterValues("dx5");
  if(t1==null)
  {

  }
  if (t1==null)
  {
    out.print("<p style='color:blue'>1.应选正确</p>");
  }
  else if(t1.equals("1"))
  {
    out.print("<p style='color:green'>1.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>1.错误,应选正确</p>");
  if (t2==null)
  {
    out.print("<p style='color:blue'>2.应选正确</p>");
  }
  else    if(t2.equals("1"))
  {
    out.print("<p style='color:green'>2.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>2.错误,应选正确</p>");
  if (t3==null)
  {
    out.print("<p style='color:blue'>3.应选正确</p>");
  }
  else    if(t3.equals("1"))
  {
    out.print("<p style='color:green'>3.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>3.错误,应选正确</p>");
  if (t4==null)
  {
    out.print("<p style='color:blue'>4.应选正确</p>");
  }
  else    if(t4.equals("1"))
  {
    out.print("<p style='color:green'>4.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>4.错误,应选正确</p>");
  if (t5==null)
  {
    out.print("<p style='color:blue'>5.应选错误</p>");
  }
  else    if(t5.equals("2"))
  {
    out.print("<p style='color:green'>5.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>5.错误,应选错误</p>");
  if (t6==null)
  {
    out.print("<p style='color:blue'>6.应选D</p>");
  }
  else    if(t6.equals("4"))
  {
    out.print("<p style='color:green'>6.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>6.错误,应选D</p>");
  if (t7==null)
  {
    out.print("<p style='color:blue'>7.应选C</p>");
  }
  else
  if(t7.equals("3"))
  {
    out.print("<p style='color:green'>7.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>7.错误,应选C</p>");
  if (t8==null)
  {
    out.print("<p style='color:blue'>8.应选B</p>");
  }
  else
  if(t8.equals("2"))
  {
    out.print("<p style='color:green'>8.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>8.错误,应选B</p>");
  if (t9==null)
  {
    out.print("<p style='color:blue'>9.应选D</p>");
  }
  else
  if(t9.equals("4"))
  {
    out.print("<p style='color:green'>9.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>9.错误,应选D</p>");
  if (t10==null)
  {
    out.print("<p style='color:blue'>10.应选B</p>");
  }
  else
  if(t10.equals("2"))
  {
    out.print("<p style='color:green'>10.正确</p>");
    sum+=5;
  }
  else
    out.print("<p style='color:red'>3.错误,应选B</p>");
  if (t11==null||t11.length<2)
  {
    out.print("<p style='color:blue'>11.应选A和D</p>");
  }
  else

  if(t11[0].equals("1")&t11[1].equals("4"))
  {
    out.print("<p style='color:green'>11.正确</p>");
    sum+=10;
  }
  else
    out.print("<p style='color:red'>11.错误,应选A和D</p>");
  if (t12==null||t12.length<3)
  {
    out.print("<p style='color:blue'>12.应选B、C、E</p>");
  }
  else
  if(t12[0].equals("2")&t12[1].equals("3")&t12[2].equals("5"))
  {
    out.print("<p style='color:green'>12.正确</p>");
    sum+=10;
  }
  else
    out.print("<p style='color:red'>12.错误,应选B、C、E</p>");
  if (t13==null||t13.length<4)
  {
    out.print("<p style='color:blue'>13.应选A、B、C、D</p>");
  }
  else
  if(t13[0].equals("1")&t13[1].equals("2")&t13[2].equals("3")&t13[3].equals("4"))
  {
    out.print("<p style='color:green'>13.正确</p>");
    sum+=10;
  }
  else
    out.print("<p style='color:red'>13.错误,应选A、B、C、D</p>");
  if (t14==null||t14.length<3)
  {
    out.print("<p style='color:blue'>14.应选A、B、D</p>");
  }
  else
  if(t14[0].equals("1")&t14[1].equals("2")&t14[2].equals("4"))
  {
    out.print("<p style='color:green'>14.正确</p>");
    sum+=10;
  }
  else
    out.print("<p style='color:red'>14.错误,应选A、B、D</p>");
  if (t15==null||t15.length<3)
  {
    out.print("<p style='color:blue'>15.应选A、B、D</p>");
  }
  else
  if(t15[0].equals("1")&t15[1].equals("2")&t15[2].equals("4"))
  {
    out.print("<p style='color:green'>15.正确</p>");
    sum+=10;
  }
  else
    out.print("<p style='color:red'>15.错误,应选A、B、D</p>");
  out.print("<p style='color:red;'><font size='100px;'>最后得分"+sum+"</font><p>");
%>

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SQLAlchemy 是一个 SQL 工具包和对象关系映射(ORM)库,用于 Python 编程语言。它提供了一个高级的 SQL 工具和对象关系映射工具,允许开发者以 Python 类和对象的形式操作数据库,而无需编写大量的 SQL 语句。SQLAlchemy 建立在 DBAPI 之上,支持多种数据库后端,如 SQLite, MySQL, PostgreSQL 等。 SQLAlchemy 的核心功能: 对象关系映射(ORM): SQLAlchemy 允许开发者使用 Python 类来表示数据库表,使用类的实例表示表中的行。 开发者可以定义类之间的关系(如一对多、多对多),SQLAlchemy 会自动处理这些关系在数据库中的映射。 通过 ORM,开发者可以像操作 Python 对象一样操作数据库,这大大简化了数据库操作的复杂性。 表达式语言: SQLAlchemy 提供了一个丰富的 SQL 表达式语言,允许开发者以 Python 表达式的方式编写复杂的 SQL 查询。 表达式语言提供了对 SQL 语句的灵活控制,同时保持了代码的可读性和可维护性。 数据库引擎和连接池: SQLAlchemy 支持多种数据库后端,并且为每种后端提供了对应的数据库引擎。 它还提供了连接池管理功能,以优化数据库连接的创建、使用和释放。 会话管理: SQLAlchemy 使用会话(Session)来管理对象的持久化状态。 会话提供了一个工作单元(unit of work)和身份映射(identity map)的概念,使得对象的状态管理和查询更加高效。 事件系统: SQLAlchemy 提供了一个事件系统,允许开发者在 ORM 的各个生命周期阶段插入自定义的钩子函数。 这使得开发者可以在对象加载、修改、删除等操作时执行额外的逻辑。
SQLAlchemy 是一个 SQL 工具包和对象关系映射(ORM)库,用于 Python 编程语言。它提供了一个高级的 SQL 工具和对象关系映射工具,允许开发者以 Python 类和对象的形式操作数据库,而无需编写大量的 SQL 语句。SQLAlchemy 建立在 DBAPI 之上,支持多种数据库后端,如 SQLite, MySQL, PostgreSQL 等。 SQLAlchemy 的核心功能: 对象关系映射(ORM): SQLAlchemy 允许开发者使用 Python 类来表示数据库表,使用类的实例表示表中的行。 开发者可以定义类之间的关系(如一对多、多对多),SQLAlchemy 会自动处理这些关系在数据库中的映射。 通过 ORM,开发者可以像操作 Python 对象一样操作数据库,这大大简化了数据库操作的复杂性。 表达式语言: SQLAlchemy 提供了一个丰富的 SQL 表达式语言,允许开发者以 Python 表达式的方式编写复杂的 SQL 查询。 表达式语言提供了对 SQL 语句的灵活控制,同时保持了代码的可读性和可维护性。 数据库引擎和连接池: SQLAlchemy 支持多种数据库后端,并且为每种后端提供了对应的数据库引擎。 它还提供了连接池管理功能,以优化数据库连接的创建、使用和释放。 会话管理: SQLAlchemy 使用会话(Session)来管理对象的持久化状态。 会话提供了一个工作单元(unit of work)和身份映射(identity map)的概念,使得对象的状态管理和查询更加高效。 事件系统: SQLAlchemy 提供了一个事件系统,允许开发者在 ORM 的各个生命周期阶段插入自定义的钩子函数。 这使得开发者可以在对象加载、修改、删除等操作时执行额外的逻辑。
GeoPandas是一个开源的Python库,旨在简化地理空间数据的处理和分析。它结合了Pandas和Shapely的能力,为Python用户提供了一个强大而灵活的工具来处理地理空间数据。以下是关于GeoPandas的详细介绍: 一、GeoPandas的基本概念 1. 定义 GeoPandas是建立在Pandas和Shapely之上的一个Python库,用于处理和分析地理空间数据。 它扩展了Pandas的DataFrame和Series数据结构,允许在其中存储和操作地理空间几何图形。 2. 核心数据结构 GeoDataFrame:GeoPandas的核心数据结构,是Pandas DataFrame的扩展。它包含一个或多个列,其中至少一列是几何列(geometry column),用于存储地理空间几何图形(如点、线、多边形等)。 GeoSeries:GeoPandas中的另一个重要数据结构,类似于Pandas的Series,但用于存储几何图形序列。 二、GeoPandas的功能特性 1. 读取和写入多种地理空间数据格式 GeoPandas支持读取和写入多种常见的地理空间数据格式,包括Shapefile、GeoJSON、PostGIS、KML等。这使得用户可以轻松地从各种数据源中加载地理空间数据,并将处理后的数据保存为所需的格式。 2. 地理空间几何图形的创建、编辑和分析 GeoPandas允许用户创建、编辑和分析地理空间几何图形,包括点、线、多边形等。它提供了丰富的空间操作函数,如缓冲区分析、交集、并集、差集等,使得用户可以方便地进行地理空间数据分析。 3. 数据可视化 GeoPandas内置了数据可视化功能,可以绘制地理空间数据的地图。用户可以使用matplotlib等库来进一步定制地图的样式和布局。 4. 空间连接和空间索引 GeoPandas支持空间连接操作,可以将两个GeoDataFrame按照空间关系(如相交、包含等)进行连接。此外,它还支持空间索引,可以提高地理空间数据查询的效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值