摘要: 查看基本信息表: import data.plandata; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServle 阅读全文
posted @ 2025-02-04 19:41 sword_kong 阅读(10) 评论(0) 推荐(0)
摘要: 在 Python 中,使用 class 关键字来定义类,并通过类名创建对象。 定义一个类 class Dog: # 初始化方法 def init(self, name, age): self.name = name self.age = age # 方法 def bark(self): print( 阅读全文
posted @ 2025-02-03 21:39 sword_kong 阅读(17) 评论(0) 推荐(0)
摘要: create table plan( number varbinary(8), date date, reason text, PRIMARY KEY (number) ); create table people( name text, sex text, birthday date, idnum 阅读全文
posted @ 2025-02-02 21:06 sword_kong 阅读(12) 评论(0) 推荐(0)
摘要: 在Python中,文件操作是编程中的一个重要部分。文件操作通常包括打开文件、读取或写入文件内容以及关闭文件。以下是文件操作的基本步骤和常用方法: 打开文件 使用open()函数可以打开一个已经存在的文件或创建一个新文件。open()函数需要两个参数:文件名和模式(如只读、写入等)。 f = open 阅读全文
posted @ 2025-02-01 21:18 sword_kong 阅读(51) 评论(0) 推荐(0)
摘要: 登录: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>登录</title> </head> <body> <form action="index" method="post 阅读全文
posted @ 2025-01-31 21:13 sword_kong 阅读(15) 评论(0) 推荐(0)
摘要: create database testsystem; use testsystem; 评估基本信息 create table plan( number varbinary(8), date date, reason text ); 被评者基本信息 create table people( name 阅读全文
posted @ 2025-01-30 20:26 sword_kong 阅读(16) 评论(0) 推荐(0)
摘要: 函数定义方式 Python: def my_function(param1, param2, keyword_param=None): return param1 + param2 + (keyword_param if keyword_param is not None else 0) Pytho 阅读全文
posted @ 2025-01-20 18:32 sword_kong 阅读(16) 评论(0) 推荐(0)
摘要: 列表(List) 可变性:列表是可变的(mutable),这意味着你可以在创建列表后添加、删除或更改其中的元素。 定义方式:使用方括号 [] 来定义一个列表 my_list = [1, 2, 3, "apple", "banana"] 操作:可以对列表执行多种操作,如追加、插入、删除等。 追加元素: 阅读全文
posted @ 2025-01-16 18:46 sword_kong 阅读(22) 评论(0) 推荐(0)
摘要: python中的数据类型: 整数(int):用于表示整数,例如 -5,0,10 等。 浮点数(float):用于表示小数,例如 3.14, -0.5 等。 字符串(str):用于表示文本,例如 "Hello",'World' 等。 布尔值(bool):用于表示真或假,只有两个值,True 和 Fal 阅读全文
posted @ 2025-01-14 20:31 sword_kong 阅读(15) 评论(0) 推荐(0)
摘要: import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.Ht 阅读全文
posted @ 2024-12-09 23:11 sword_kong 阅读(24) 评论(0) 推荐(0)