diff --git a/Python程序设计课程设计报告.doc b/21412030112_刘见文_计科2101_旅游攻略推荐系统.doc similarity index 100% rename from Python程序设计课程设计报告.doc rename to 21412030112_刘见文_计科2101_旅游攻略推荐系统.doc diff --git a/TR/abc.py b/TR/abc.py deleted file mode 100644 index 4604621..0000000 --- a/TR/abc.py +++ /dev/null @@ -1,12 +0,0 @@ -import urllib.parse - - -def url_encode(s): - """将字符串转化为URL编码""" - return urllib.parse.quote(s, safe='') - - -# 示例 -input_string = input("请输入要编码的字符串:") -encoded_string = url_encode(input_string) -print(encoded_string) \ No newline at end of file diff --git a/TR/trial.sql b/TR/trial.sql new file mode 100644 index 0000000..1e86206 --- /dev/null +++ b/TR/trial.sql @@ -0,0 +1,67 @@ +/* + Navicat Premium Data Transfer + + Source Server : stu + Source Server Type : MySQL + Source Server Version : 80032 + Source Host : localhost:3306 + Source Schema : trial + + Target Server Type : MySQL + Target Server Version : 80032 + File Encoding : 65001 + + Date: 12/06/2024 18:04:37 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for collections +-- ---------------------------- +DROP TABLE IF EXISTS `collections`; +CREATE TABLE `collections` ( + `user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `essay_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + PRIMARY KEY (`user_id`, `essay_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of collections +-- ---------------------------- +INSERT INTO `collections` VALUES ('123', '652e1987000000001a01728c'); + +-- ---------------------------- +-- Table structure for manage +-- ---------------------------- +DROP TABLE IF EXISTS `manage`; +CREATE TABLE `manage` ( + `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `psw` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of manage +-- ---------------------------- +INSERT INTO `manage` VALUES ('admin', '10086'); + +-- ---------------------------- +-- Table structure for user +-- ---------------------------- +DROP TABLE IF EXISTS `user`; +CREATE TABLE `user` ( + `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `psw` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of user +-- ---------------------------- +INSERT INTO `user` VALUES ('123', '123'); +INSERT INTO `user` VALUES ('root', 'root'); +INSERT INTO `user` VALUES ('test', '666'); + +SET FOREIGN_KEY_CHECKS = 1;