commit Finish

main
CriptDit 6 months ago
parent 01fba4e1f2
commit d64477544b

@ -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)

@ -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;
Loading…
Cancel
Save