广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >php代码怎么实现成绩查询
  • 409
分享到

php代码怎么实现成绩查询

成绩查询php 2023-05-14 19:05:09 409人浏览 薄情痞子
摘要

PHP代码实现成绩查询的方法:1、创建前端登录页面代码;2、通过“if (isset($_SESSioN['username'])) {...}”语法实现判断用户是否登录;3、创建后端管理登录页面;4、连接数据库;5、通过“

PHP代码实现成绩查询的方法:1、创建前端登录页面代码;2、通过“if (isset($_SESSioN['username'])) {...}”语法实现判断用户是否登录;3、创建后端管理登录页面;4、连接数据库;5、通过“session_start(); if (isset($_COOKIE['username'])) {$_SESSION['']}”代码实现查询成绩即可。

php代码怎么实现成绩查询

教程操作环境:windows7系统、php8.1版、Dell G3电脑。

php代码怎么实现成绩查询?

PHP成绩查询系统

一个非常简陋的PHP成绩查询系统,期末作业。

因为上课打酱油了,所以这也是最后几天捣鼓出来的,代码都是东拼西凑的,只有简单的增删改查功能。就酱紫。

c82e7e240aae3683a8a6df5ec5536ee.jpg

数据库

f7194ad31caf0e8b018e445f7f24318.jpg

一共这么几个文件(htmlCSS、php都写一块了)

36b511c297562eeed0b9bd7054861f4.jpg

然后界面:(就长这样)

887c1cdb510f3d0638cdc182310cdb6.jpg

1eb091ff118aff6df562cde41db0e8d.jpg

代码是按上图的文件顺序排的

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta Http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: auto;
        }
        fieldset {
            margin: auto;
            margin-top: 200px;
            width: 400px;
            text-align: center;
        }
        ul li {
            margin: 0;
            padding: 0;
        }
        fORM {
            margin: 40px 30px 0;
        }
        form li {
            list-style: none;
            padding: 5px 0;
        }
        .login_btn {
            border: none;
            background: #01A4F1;
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            height: 28px;
            line-height: 28px;
            padding: 0 10px;
            cursor: pointer;
        }
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
        .return_but {
            float: right;
        }
    </style>
</head>
<body>
    <form action="#" method="POST">
        <fieldset>
            <legend>添加学生成绩</legend>
            <ul>
                <li>
                    请输入学生的<b>成绩</b>
                    <span><a href="show_teacher.php">返回</a></span>
                </li>
                <li>
                    学号:
                    <input type="text" name="username" />
                </li>
                <li>
                    语文:
                    <input type="text" name="yuwen" />
                </li>
                <li>
                    数学:
                    <input type="text" name="shuxue" />
                </li>
                <li>
                    英语:
                    <input type="text" name="yingyu" />
                </li>
                <li>
                    综合:
                    <input type="text" name="zonghe" />
                </li>
                <li>
                    <input type="submit" name="add_score" value="确认添加" />
                </li>
            </ul>
        </fieldset>
    </form>
    <?php
    header("Content-Type:text/html; charset=utf-8");
    session_start();
    include("conn.php");
    $con = Mysqli_connect("localhost:3306", "root", "", "resultsquerysystem");
    mysqli_query($con, "set names utf8");
    if (isset($_SESSION['username'])) {
        if (isset($_POST['add_score'])) {
            $username = $_POST['username'];
            $yuwen = $_POST['yuwen'];
            $shuxue = $_POST['shuxue'];
            $yingyu = $_POST['yingyu'];
            $zonghe = $_POST['zonghe'];
            $sql = "insert into score (username,语文,数学,英语,综合) values('$username','$yuwen','$shuxue','$yingyu','$zonghe')";
            mysqli_query($con, $sql);
            if (mysqli_affected_rows($con) > 0) {
                echo "<script> alert('添加成功'); location.href='show_teacher.php';</script>";
            }
        }
    } else {
        //缓存意外被清除后、
        echo "用户信息丢失,3秒后返回登陆界面";
        header('refresh: 3; url=index.php');
    }
    ?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: auto;
        }
        fieldset {
            margin: auto;
            margin-top: 200px;
            width: 400px;
            text-align: center;
        }
        ul li {
            margin: 0;
            padding: 0;
        }
        form {
            margin: 40px 30px 0;
        }
        form li {
            list-style: none;
            padding: 5px 0;
        }
        .login_btn {
            border: none;
            background: #01A4F1;
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            height: 28px;
            line-height: 28px;
            padding: 0 10px;
            cursor: pointer;
        }
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
        .return_but {
            float: right;
        }
    </style>
</head>
<body>
    <form action="#" method="POST">
        <fieldset>
            <legend>添加学生信息</legend>
            <ul>
                <li>
                    请输入需要添加学生的<b>学号</b>和<b>登陆密码</b>
                    <span><a href="show_teacher.php">返回</a></span>
                </li>
                <li>
                    学号:
                    <input type="text" name="username" />
                </li>
                <li>
                    密码:
                    <input type="passWord" name="password" />
                </li>
                <li>
                    <input type="submit" name="add_student" value="确认添加" />
                </li>
            </ul>
        </fieldset>
    </form>
    <?php
    header("Content-Type:text/html; charset=utf-8");
    session_start();
    include("conn.php");
    $con = mysqli_connect("localhost:3306", "root", "", "resultsquerysystem");
    mysqli_query($con, "set names utf8");
    if (isset($_SESSION['username'])) {
        if (isset($_POST['add_student'])) {
            $username = $_POST['username'];
            $password = $_POST['password'];
            $sql = "insert into student (username,password) values('$username','$password')";
            mysqli_query($con, $sql);
            if (mysqli_affected_rows($con) > 0) {
                echo "<script> alert('添加成功'); location.href='show_teacher.php';</script>";
            }
        }
    } else {
        //缓存意外被清除后、
        
        echo "用户信息丢失,3秒后返回登陆界面";
        header('refresh: 3; url=index.php');
    }
    ?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: auto;
        }
        fieldset {
            margin: auto;
            margin-top: 200px;
            width: 400px;
            text-align: center;
        }
        ul li {
            margin: 0;
            padding: 0;
        }
        form {
            margin: 40px 30px 0;
        }
        form li {
            list-style: none;
            padding: 5px 0;
        }
        .login_btn {
            border: none;
            background: #01A4F1;
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            height: 28px;
            line-height: 28px;
            padding: 0 10px;
            cursor: pointer;
        }
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
        .return_but {
            float: right;
        }
    </style>
</head>
<body>
    <form action="#" method="POST">
        <fieldset>
            <legend>修改学生成绩</legend>
            <ul>
                <li>
                    学号:<?php echo $_GET['username'] ?>
                    <span><a href="show_teacher.php">返回</a></span>
                </li>
                <li>
                    语文:
                    <input type="text" name="yuwen" value="<?php echo $_GET['yuwen'] ?>" />
                </li>
                <li>
                    数学:
                    <input type="text" name="shuxue" value="<?php echo $_GET['shuxue'] ?>" />
                </li>
                <li>
                    英语:
                    <input type="text" name="yingyu" value="<?php echo $_GET['yingyu'] ?>" />
                </li>
                <li>
                    综合:
                    <input type="text" name="zonghe" value="<?php echo $_GET['zonghe'] ?>" />
                </li>
                <li>
                    <input type="submit" name="alter_score" value="确认修改" />
                </li>
            </ul>
        </fieldset>
    </form>
    <?php
    header("Content-Type:text/html; charset=utf-8");
    session_start();
    include("conn.php");
    $con = mysqli_connect("localhost:3306", "root", "", "resultsquerysystem");
    mysqli_query($con, "set names utf8");
    if (isset($_SESSION['username'])) {
        if (isset($_POST['alter_score'])) {
            $username = $_GET['username'];
            $yuwen = $_POST['yuwen'];
            $shuxue = $_POST['shuxue'];
            $yingyu = $_POST['yingyu'];
            $zonghe = $_POST['zonghe'];
            $sql = "UPDATE `score` SET`语文`=$yuwen,`数学`=$shuxue,`英语`=$yingyu,`综合`=$zonghe WHERE username = $username";
            mysqli_query($con, $sql);
            if (mysqli_affected_rows($con) > 0) {
                echo "<script> alert('修改成功'); location.href='show_teacher.php';</script>";
            }
        }
    } else {
        //缓存意外被清除后、
        echo "用户信息丢失,3秒后返回登陆界面";
        header('refresh: 3; url=index.php');
    }
    ?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<?php
$con =mysqli_connect("localhost:3306","root","","miniblog");
 if(!$con){
die("链接错误");
     }
  mysqli_query($con,"set names utf8");
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <?php
    header("Content-Type:text/html; charset=utf-8");
    session_start();
    include("conn.php");
    $con = mysqli_connect("localhost:3306", "root", "", "resultsquerysystem");
    mysqli_query($con, "set names utf8");
    if (isset($_SESSION['username'])) {
        if (isset($_GET['id'])) {
            $username = $_GET['id'];
            echo $username;
            $sql = "delete from score where username = $username";
            mysqli_query($con, $sql);
            if (mysqli_affected_rows($con) > 0) {
                echo "<script> alert('删除成功'); location.href='show_teacher.php';</script>";
            }
        }
    } else {
        //缓存意外被清除后、
        echo "用户信息丢失,3秒后返回登陆界面";
        header('refresh: 3; url=index.php');
    }
    ?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style>
        * {
            margin: 0px;
            padding: auto;
        }
        fieldset {
            margin: auto;
            margin-top: 200px;
            width: 400px;
            text-align: center;
        }
        ul li {
            margin: 0;
            padding: 0;
        }
        form {
            margin: 40px 30px 0;
        }
        form li {
            list-style: none;
            padding: 5px 0;
        }
        .login_btn {
            border: none;
            background: #01A4F1;
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            height: 28px;
            line-height: 28px;
            padding: 0 10px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <form action="#" method="POST">
        <fieldset>
            <legend>用户登录</legend>
            <ul>
                <li>
                    用户名:
                    <input type="text" name="username" />
                </li>
                <li>
                    密&nbsp;&nbsp;&nbsp;码:
                    <input type="password" name="password" />
                </li>
                <li>
                    <input type="submit" name="login_student" value="学生登录" />
                    <input type="submit" name="login_teacher" value="教师登录" />
                </li>
            </ul>
            <?php
            header("Content-Type:text/html;charset=utf-8");
            include("conn.php");
            $con = mysqli_connect("localhost:3306", "root", "", "resultsquerysystem");
            session_start();
            //点击学生登陆按钮
            if (isset($_POST['login_student'])) {
                $username = trim($_POST['username']);
                $password = trim($_POST['password']);
                if (($username == '') || ($password == '')) {
                    header('refresh: 3; url=index.php');
                    echo "该用户名或者密码不能为空,3秒后跳转到登录页面";
                    exit;
                } else {
                    $sql = "select * from student where  username='$username'";
                    $res = mysqli_query($con, $sql);
                    $n = mysqli_num_rows($res);
                    if ($n > 0) {
                        $row = mysqli_fetch_assoc($res);
                        $pwd = $row['password'];
                        //用户名或密码错误
                        if ($password != $pwd) {
                            # code...
                            header('refresh: 3; url=index.php');
                            echo "用户名或者密码错误,3秒后跳转到登录页面";
                        } else {
                            //登录成功,将用户信息保存到session中
                            $_SESSION['username'] = $username;
                            $_SESSION['islogin'] = 1;
                            //用户信息保存到Cookie  ,1天
                            setcookie("username", $username, time() + 24 * 60 * 60);
                            setcookie(
                                "pw",
                                md5($username . md5($password)),
                                time() + 24 * 60 * 60
                            );
                            //跳转到显示页面
                            header("location:show_student.php");
                        }
                    } else {
                        header('refresh: 3; url=index.php');
                        echo "用户名或者密码错误,3秒后跳转到登录页面";
                    }
                }
            }
            //点击教师登录按钮
            elseif (isset($_POST['login_teacher'])) {
                $username = trim($_POST['username']);
                $password = trim($_POST['password']);
                if (($username == '') || ($password == '')) {
                    header('refresh: 3; url=index.php');
                    echo "该用户名或者密码不能为空,3秒后跳转到登录页面";
                    exit;
                } else {
                    $sql = "select * from teacher where  username='$username'";
                    $res = mysqli_query($con, $sql);
                    $n = mysqli_num_rows($res);
                    if ($n > 0) {
                        $row = mysqli_fetch_assoc($res);
                        $pwd = $row['password'];
                        //用户名或密码错误
                        if ($password != $pwd) {
                            # code...
                            header('refresh: 3; url=index.php');
                            echo "用户名或者密码错误,3秒后跳转到登录页面";
                        } else {
                            //登录成功,将用户信息保存到session中
                            $_SESSION['username'] = $username;
                            $_SESSION['islogin'] = 1;
                            //用户信息保存到Cookie  ,1天
                            setcookie("username", $username, time() + 24 * 60 * 60);
                            setcookie(
                                "pw",
                                md5($username . md5($password)),
                                time() + 24 * 60 * 60
                            );
                            //跳转到显示页面
                            header("location:show_teacher.php");
                        }
                    } else {
                        header('refresh: 3; url=index.php');
                        echo "用户名或者密码错误,3秒后跳转到登录页面";
                    }
                }
            }
            ?>
        </fieldset>
    </form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <?php
    header("Content-Type:text/html;charset=utf-8");
    session_start();
    //清除session 
    $username = $_SESSION['username'];
    $_SESSION = array();
    session_destroy();
    //清除cookie 
    setcookie("username", '', time() - 1);
    setcookie("code", '', time() - 1);
    echo "<a href='index.php'>点击重新登录</a>";
    header('refresh: 5; url=index.php');    
    echo "<br />5秒钟后自动返回到主页";
    ?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: auto;
        }
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
        #box {
            margin: auto;
            margin-top: 200px;
            width: 800px;
            text-align: center;
        }
        table {
            width: 700px;
            padding: 0;
            margin: 0 auto;
        }
        td {
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            font-size: 11px;
            padding: 6px 6px 6px 12px;
            color: #4f6b72;
        }
        tr:hover {
            background-color: #B0C4DE;
        }
        th {
            font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
            color: #4f6b72;
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            border-top: 1px solid #C1DAD7;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-align: center;
            padding: 6px 6px 6px 12px;
            background: #CAE8EA no-repeat;
        }
    </style>
</head>
<body>
    <div id="box">
        <?php
        header("Content-Type:text/html;charset=utf-8");
        session_start();
        //首先判断Cookie是否有记住用户信息 
        if (isset($_COOKIE['username'])) {
            $_SESSION['username'] = $_COOKIE['username'];
            $_SESSION['islogin'] = 1;
        }
        if (isset($_SESSION['islogin'])) {
            //已经登录 
            echo "成绩查询中心!<br/><br/>你的学号:" . $_SESSION['username'] . "&nbsp;&nbsp;&nbsp;";
            echo "<a href='loGout.php'>注销</a>";
        } else { //为登录 
            echo "你还未登录,请<a href='index.php'>登录</a>";
        }
        ?>
        <table>
            <thead>
                <th>语文</th>
                <th>数学</th>
                <th>英语</th>
                <th>综合</th>
            </thead>
            <?php
            $db = new mysqli("localhost", "root", "", "resultsquerysystem");
            $sql = "select * from score where username = '" . $_SESSION['username'] . "'";
            $r = $db->query($sql);
            //传值
            while ($attr = $r->fetch_row()) {
                echo " <tr>
    <td>{$attr[1]}</td>
    <td>{$attr[2]}</td>
    <td>{$attr[3]}</td>
    <td>{$attr[4]}</td>
  </tr>";
            }
            ?>
        </table>
    </div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        a:link {
            text-decoration: none;
            color: blue;
        }
        a:visited {
            color: blue;
            text-decoration: none;
        }
        * {
            margin: 0px;
            padding: auto;
        }
        #box {
            margin: auto;
            margin-top: 200px;
            width: 800px;
            text-align: center;
        }
        table {
            width: 700px;
            padding: 0;
            margin: 20px auto;
        }
        td {
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            font-size: 11px;
            padding: 6px 6px 6px 12px;
            color: #4f6b72;
        }
        tr:hover {
            background-color: #B0C4DE;
        }
        th {
            font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
            color: #4f6b72;
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            border-top: 1px solid #C1DAD7;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-align: center;
            padding: 6px 6px 6px 12px;
            background: #CAE8EA no-repeat;
        }
        .login_btn {
            border: none;
            background: #01A4F1;
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            height: 28px;
            line-height: 28px;
            padding: 0 10px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div id="box">
        <?php
        header("Content-Type:text/html;charset=utf-8");
        session_start();
        //首先判断Cookie是否有记住用户信息 
        if (isset($_COOKIE['username'])) {
            $_SESSION['username'] = $_COOKIE['username'];
            $_SESSION['islogin'] = 1;
        }
        if (isset($_SESSION['islogin'])) {
            //已经登录 
            echo "成绩查询中心!<br/><br/>工号:" . $_SESSION['username'] . "&nbsp;&nbsp;&nbsp;";
            echo "<a href='logout.php'>注销</a>";
        } else { //为登录 
            echo "你还未登录,请<a href='index.php'>登录</a>";
        }
        ?>
        <form method="post" action="delete_score.php">
            <table>
                <thead>
                    <th>学号</th>
                    <th>语文</th>
                    <th>数学</th>
                    <th>英语</th>
                    <th>综合</th>
                    <th>操作</th>
                </thead>
                <?php
                $db = new mysqli("localhost", "root", "", "resultsquerysystem");
                $sql = "select * from score";
                $r = $db->query($sql);
                //传值
                while ($attr = $r->fetch_row()) {
                    echo " <tr>
  
    <td>{$attr[0]}</td>
    <td>{$attr[1]}</td>
    <td>{$attr[2]}</td>
    <td>{$attr[3]}</td>
    <td>{$attr[4]}</td>
    <td>
        <a href='alter_score.php?username=$attr[0]&yuwen=$attr[1]&shuxue=$attr[2]&yingyu=$attr[3]&zonghe=$attr[4]'>修改</a>&nbsp;&nbsp;&nbsp;
        <a href='delete_score.php?id=$attr[0]'>删除</a>
    </td>
  </tr>";
                }
                ?>
            </table>
        </form>
        <a href="add_student.php"><button>添加学生信息</button></a>
        &nbsp; &nbsp; &nbsp;
        <a href="add_score.php"><button>添加学生成绩</button></a>
    </div>
</body>
</html>

以上就是php代码怎么实现成绩查询的详细内容,更多请关注编程网其它相关文章!

--结束END--

本文标题: php代码怎么实现成绩查询

本文链接: https://www.lsjlt.com/news/203399.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • php代码怎么实现成绩查询
    php代码实现成绩查询的方法:1、创建前端登录页面代码;2、通过“if (isset($_SESSION['username'])) {...}”语法实现判断用户是否登录;3、创建后端管理登录页面;4、连接数据库;5、通过“...
    99+
    2023-05-14
    成绩 查询 php
  • php代码如何实现成绩查询
    今天小编给大家分享一下php代码如何实现成绩查询的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。php代码实现成绩查询的方法:...
    99+
    2023-07-04
  • c语言成绩查询系统怎么实现
    要实现一个C语言成绩查询系统,你可以按照以下步骤进行:1. 定义学生结构体:首先,你需要定义一个学生的结构体,其中包括学生的学号、姓名和成绩等信息。```ctypedef struct {int studentID;char name[...
    99+
    2023-08-09
    c语言
  • Python怎么实现提前查询考研成绩功能
    这篇“Python怎么实现提前查询考研成绩功能”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“Python怎么实现提前查询考研...
    99+
    2023-07-06
  • PHP公共课平时成绩查询系统(源代码+论文+答辩PPT)
    众所周知,现代信息技术是现代教育技术的基础和核心,培养和创新型的人才必须依靠现代教育技术。从这一层意义上讲,我们说掌握一定的计算机应用技能已经成为国家未来的合格建设者的必备素质,所以现在在大学中对非计算机系的学生开设了计算机文化基础课,并且...
    99+
    2023-09-03
    php powerpoint java 网络 网络协议
  • Python实现提前查询考研成绩功能
    目录一、填写相关信息二、发件人Email说明三、代码实现1. 查询成绩并且发送到邮箱版本2. 查询成绩并且砍掉了发送邮件版本四、使用效果一、填写相关信息 使用时请先在代码所在目录新建...
    99+
    2023-05-15
    Python查询考研成绩 Python考研成绩
  • 怎么使用C语言代码实现学生成绩管理系统
    这篇文章主要介绍“怎么使用C语言代码实现学生成绩管理系统”,在日常操作中,相信很多人在怎么使用C语言代码实现学生成绩管理系统问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么使用C语言代码实现学生成绩管理系统...
    99+
    2023-06-30
  • C语言代码实现学生成绩管理系统
    某班有最多不超过 30 人(具体人数由键盘输人)参加期未考试,考试科目 最多不超过 6 门(具体门数由键盘输入,但不少于 3 门),学生成绩管理系统是一 个非常实用的程序,如果能够把...
    99+
    2022-11-13
  • Python 代码实现模糊查询
    最近在做一个django项目,里面有一个字典数据非常大,虽然已经做了分页处理。但是用户想要找到指定的数据,还得一页页翻,非常繁琐。字典的结构如下:file_list = [     ...
    99+
    2023-01-31
    模糊 代码 Python
  • java怎么实现郑码查询
    要实现郑码查询,可以使用HashMap来存储郑码和相应的汉字的对应关系。具体步骤如下: 建立一个HashMap对象,用来存储郑码和...
    99+
    2023-10-26
    java
  • C语言怎么实现成绩排名
    本文小编为大家详细介绍“C语言怎么实现成绩排名”,内容详细,步骤清晰,细节处理妥当,希望这篇“C语言怎么实现成绩排名”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。1001 害死人不偿命的(3n+1)猜想#incl...
    99+
    2023-06-30
  • PHP实现生成二维码的代码怎么写
    本文小编为大家详细介绍“PHP实现生成二维码的代码怎么写”,内容详细,步骤清晰,细节处理妥当,希望这篇“PHP实现生成二维码的代码怎么写”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。前言为了满足用户渠道推广分析和...
    99+
    2023-06-30
  • php怎么实现星座查询
    本教程操作环境:windows7系统、PHP8.1版、Dell G3电脑。php怎么实现星座查询?开通星座查询API接口:通过https://www.juhe.cn/docs/api/id/612s=cpphpcn注册及开通接口说明:该接口...
    99+
    2022-10-26
  • windows蓝屏代码怎么查询
    这篇文章主要介绍了windows蓝屏代码怎么查询的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇windows蓝屏代码怎么查询文章都会有所收获,下面我们一起来看看吧。蓝屏代码在线查询器按住【CTRL+F】可以对错...
    99+
    2023-07-01
  • thinkphp中查询代码怎么写
    这篇文章主要介绍了thinkphp中查询代码怎么写的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇thinkphp中查询代码怎么写文章都会有所收获,下面我们一起来看看吧。查询单条记录查询单条记录是我们经常使用的代...
    99+
    2023-07-05
  • php优化查询foreach代码实例讲解
    php代码优化 应避免在php foreach里面进行sql查询 以下代码示例使用了laravel的操作数据库api,eloquent orm foreach里面执行两次sql查询 ...
    99+
    2022-11-11
  • 代理ip怎么实现查询信息
    这篇文章主要介绍“代理ip怎么实现查询信息”,在日常操作中,相信很多人在代理ip怎么实现查询信息问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”代理ip怎么实现查询信息”的疑惑有所帮助!接下来,请跟着小编一起来...
    99+
    2023-06-20
  • php怎么实现省市区查询
    本文操作环境:Windows7系统,PHP7.1版,Dell G3电脑。PHP实现省市县(区)三级联动查询联动查询什么是联动查询,其实这个东西在生活中非常常见,比如网购(这个几乎人人都用过吧),在网购的时候,我们需要填写订单信息,信息中有一...
    99+
    2017-09-30
    php 省市区
  • 用java实现学生成绩管理系统(附有详细代码)
    1.需求 添加学生:通过键盘录入学生信息,添加到集合中删除学生:通过键盘录入需要删除学生的学号,将该学生对象从集合中删除修改学生:通过键盘录入需要修改学的学号,将该学生对象的其他信息进行修改查看学生:将集合中的学生对象信息进行展示退出系统:...
    99+
    2023-09-09
    数据结构 java 算法
  • CSS3媒体查询代码怎么写
    这篇文章主要介绍“CSS3媒体查询代码怎么写”,在日常操作中,相信很多人在CSS3媒体查询代码怎么写问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”CSS3媒体查询代码怎么写”...
    99+
    2022-10-19
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作