11 2021 档案
摘要:简单.net增删改查(删除) string str=listBox1.SelectedItem.ToString().Replace(" ",""); string[] key = str.Split('|'); getCom("delete from information where xh='"
阅读全文
摘要:简单.net增删改查(添加,mysql数据库连接) string xh = textBox1.Text; string name= textBox3.Text; string age= textBox4.Text; string phone= textBox6.Text; string area=t
阅读全文
摘要:php(ex02c.php) <?phpif(isset($_GET['name'])&&isset($_GET['sex'])){ $ID = $_GET['name']; $sex = $_GET['sex']; $conn=mysqli_connect("localhost","root","
阅读全文
摘要:获取上传文件后缀函数 function GetExtensionFileName(pathfilename) { var reg = /(\\+)/g; var pString = pathfilename.replace(reg, "#"); //用正则表达式来将\或\\替换成# var arr
阅读全文
摘要:php(ex02b.php) <?phpif(isset($_GET['name'])&&isset($_GET['sex'])){ $ID = $_GET['name']; $sex = $_GET['sex'];}if(isset($_POST['name'])&&isset($_POST['s
阅读全文
摘要:php(ex02a.php) <?phpif(isset($_POST['name'])&&isset($_POST['sex'])){ $ID = $_POST['name']; $sex = $_POST['sex']; $conn2=mysqli_connect("localhost","ro
阅读全文
摘要:php(ex01b.php) <?phpif(isset($_POST['name'])&&isset($_POST['sex'])&&isset($_POST['hobby'])&&isset($_POST['area'])&&isset($_POST['ect'])&&$_GET['act']=
阅读全文
摘要:php(ex01c.php) <?phpif(isset($_GET['ID'])&&isset($_GET['sex'])&&isset($_GET['hobby'])&&isset($_GET['area'])&&isset($_GET['ect'])){ $ID = $_GET['ID'];
阅读全文
摘要:php(ex01a.php) <?php?><div style="position: absolute;height: 60%;width: 70%;left: 20%;top: 15%"> <form action="ex01b.php?act=add" method="post"> <tabl
阅读全文
摘要:关键字存储查询 #!/usr/bin/python# -*- coding: UTF-8 -*-import tracebackimport pymysqlimport pymysql.cursorsimport timeimport Keyword# 获得conn cursordef get_co
阅读全文
摘要:爬取 关键词统计 # -*- coding: utf-8 -*-import syssys.path.append('../')import jiebaimport jieba.analyseimport MysqlUtilfrom optparse import OptionParser# fil
阅读全文
摘要:详情存储mysql代码 #!/usr/bin/python# -*- coding: UTF-8 -*-import tracebackimport pymysqlimport pymysql.cursorsimport time# 获得conn cursordef get_conn(): # 打开
阅读全文
摘要:1. 接口中的每个子程序都朝着这个一致的目标而工作 2. 扩展的时候要注意新增公用方法的 抽象的一致性 3. 数据成员数量7+-2 4. 继承要符合里氏替换原则:对于基类定义的接口,在派生类的语义应该是相同的 5. 只有一个派生类,可能犯了提前设计的毛病 6. 继承不要超过2-3层,派生类总数不超过
阅读全文
摘要:js学习(time.js) var t=null; t = setTimeout(time,1000);//开始运行 function time(){ clearTimeout(t);//清除定时器 dt = new Date(); var y = dt.getFullYear(); var mt
阅读全文
摘要:echart (map) <!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><title>GXFC</title> <link href="favicon.ico" rel="shortcut icon"><script sr
阅读全文
摘要:python(flask) from flask import Flask, jsonify, render_template, request, jsonimport MysqlUtilapp = Flask(__name__)@app.route("/")def hello(): return
阅读全文
摘要:架构应详细定义所需的主要的类。瞄准80/20准则:对构成系统的80%功能的20%的类进行详细说明。 架构应建立一套有关错误消息的约定。 架构的总体质量: 《人月神话》的中心论题,说的就是大型系统的本质问题是维持其“概念完整性”。 好的架构设计应该与待解决的问题和谐一致。 架构应该描述所有主要决策的动
阅读全文
摘要:echart map地图json爬虫 #!/usr/bin/python# -*- coding: UTF-8 -*-import jsonimport requestsimport xlrdimport xlwt# 获取所有数据json文件def download_Json(url, name):
阅读全文
摘要:ajax上传文件示例代码 $.ajax({ type : "POST", processData: false, contentType: false, url : "UpLoadExcelServlet?method=addfile", data: file, success : function
阅读全文
摘要:软件的首要技术使命就是管理复杂度。可以通过把整个复杂系统分解为多个子系统降低问题的复杂度。 关于封装:类很像是冰山,八分之七都在水面以下,你只能看到水面以上的八分之一。 抽象数据类型(ADT)是指一些数据以及在这些数据上所能进行的操作的集合。 考虑类的一种方式,就是把它看作抽象数据类型,再加上继承和
阅读全文
摘要:js添加input标签 var input = document.createElement("input"); input.type="file"; input.id="file"+k; input.width=500; input.height=500; document.getElementB
阅读全文
摘要:好看的登录界面 @charset "UTF-8";body{ margin: 0; padding: 0; font-family: sans-serif; background: #34495e;}.box{ width: 300px; padding: 40px; position: absol
阅读全文