demo

demo

北慕城南 提交于 2020-02-22 08:38:42
``` int main() { return 0; } ``` 来源: https://www.cnblogs.com/simazhongda/p/12344016.html

mysql 查询小demo

巧了我就是萌 提交于 2020-02-21 18:26:21
两张表的的结构如下,需求是写出从one表到two表和从two表到one表的查询转换。 create table student_one( name varchar(50) default '' not null, type varchar(10) not null default 0, score float(5,2) not null default 0.00 )Engine=innodb; create table student_two( name varchar(50) default '' not null, math float(5,2) not null default 0.00, english float(5,2) not null default 0.00, chinese float(5,2) not null default 0.00 )Engine=innodb;   目前表中数据如下所示 以表one为基准查出表two的格式的语句如下: select a.name,a.score as 'math',b.score as 'chinese',c.score as 'english' from student_one a join student_one b join student_one c on a.name=b.name and a.name=c

vue关于截取字符串并将字符串替换成指定格式

梦想与她 提交于 2020-02-07 14:09:20
想了个需求,如题目 data: demo: 'bacdefghijk' web: <h1>{{str(demo)}}</h1>  methods: str(value) { return value.replace(value.substring(3, value.length - 4), '****') } 也可以在computed中使用,但限于知识,无法做到复用 web: <h1>{{str}}</h1> computed: str() { return this.demo.replace(this.demo.substring(3, this.demo.length - 4), '****') } 这个问题研究了一上午,尚未解出。如有理解的,欢迎指教 不胜感激,以上。 来源: https://www.cnblogs.com/hjk1124/p/12272625.html

简单table样式记录demo

孤街醉人 提交于 2020-02-03 00:06:53
demo: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>table</title> <style type="text/css"> .th-div,.th-in{ width:100px; height: 50px; } .td-div,.td-in{ width: 250px; height: 70px; font-size: 14px; } /* .th-div,.td-div{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; } */ .th-div,.td-div{ table-layout: fixed; white-space: normal; word-break: break-all; width: 100%; overflow: hidden; height: 60px; } /* .th-in,.td-in{ overflow: hidden; }*/ /* 布局 */ .t-left,.t-centrel,.t-right{ float: left; } .t-left,.t-right{ height: 10px; width: 200px; } </style> <

HTML injection into someone else's website?

ⅰ亾dé卋堺 提交于 2020-02-01 03:25:52
问题 I've got a product that embeds into websites similarly to Paypal (customers add my button to their website, users click on this button and once the service is complete I redirect them back to the original website). I'd like to demo my technology to customers without actually modifying their live website. To that end, is it possible to configure http://stackoverflow.myserver.com/ so it mirrors http://www.stackoverflow.com/ while seamlessly injecting my button? Meaning, I want to demo the

Spring Jpa Demo

天涯浪子 提交于 2020-01-30 02:39:21
Spring Jpa Demo 一套API标准javax.persistence的包下面CURD JPQL ORM Spring data Spring Data Commons Spring Data Gemfire Spring Data JPA Spring Data KeyValue Spring Data LDAP Spring Data MongoDB Spring Data REST Spring Data Redis Spring Data For ApacheCassandra Spring Data For Apache Solr 社区支持的子项目 Spring Data Aerospike Spring Data Couchbase Spring Data DynamoDB Spring Data Elasticsearch Spring Data Hazelcast Spring Data Jest Spring Data Neo4j Spring Data Vault Spring Data JPA Spring Data JPA 1.11的新增功能 改进了与Hibernate5.2的兼容性。支持示例查询的任何匹配模式。分页查询执行优化。支持在存储库查询派生中存在的投影。 由于各个Spring数据模块的起始日期不同,它们大多带有不同的主版本号和次版本号

python——爬取网页(4)

走远了吗. 提交于 2020-01-29 13:45:13
Beautiful Soup库的安装 【安装】: 使用管理员权限打开cmd 输入 pip install beautifulsoup4 3.测试Beautiful Soup 库是否安装完成 示例网站:https://python123.io/ws/demo.html 页面源代码: (1)使用requests库提取网页 >> > import requests >> > r = requests . get ( "https://python123.io/ws/demo.html" ) >> > r . status_code 200 >> > r . encoding = r . apparent_encoding >> > r . text '<html><head><title>This is a python demo page</title></head>\r\n<body>\r\n<p class="title"><b>The demo python introduces several python courses.</b></p>\r\n<p class="course">Python is a wonderful general-purpose programming language. You can learn Python from novice to

ASTreeView Demo:Add, Edit & Delete nodes

依然范特西╮ 提交于 2020-01-26 19:35:38
http://www.jinweijie.com/ http://www.astreeview.com/astreeviewdemo/astreeviewdemo1.aspx 選擇節點: <script type="text/javascript"> //選擇節點 OnNodeSelectedScript="nodeSelectHandler(elem);" function nodeSelectHandler(elem){ var val = "selected node:" + elem.parentNode.getAttribute("treeNodeValue"); var vals=elem.parentNode.getAttribute("treeNodeValue"); var valt=elem.innerHTML;//獲取顯示的值//注:塗聚文 document.getElementById("<%=divConsole.ClientID %>").innerHTML += (">>" + val + "<br />"); document.getElementById("<%=TextBox1.ClientID %>").value = vals; document.getElementById("<%=TextBox2.ClientID %>").value

Django-模态框Demo

心已入冬 提交于 2020-01-25 00:48:16
Down了一个简单使用的模态框Demo HTML: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>模态框</title> <link rel="stylesheet" type="text/css" href="modalBox.css"> </head> <body> <!-- 触发按钮 --> <button id="triggerBtn">模态框</button> <!-- 模态框 --> <div id="myModal" class="modal"> <div class="modal-content"> <div class="modal-header"> <h2>头部</h2> <span id="closeBtn" class="close">×</span> </div> <div class="modal-body"> <p>这是一个模态框!</p> <p>喜欢就点个赞吧!</p> </div> <div class="modal-footer"> <h3>尾部</h3> </div> </div> </div> <script type="text/javascript" src="modalBox.js"></script> </body> </html> JS: (function(

Python爬虫学习笔记(BeautifulSoup4库:标签树的上、下、平行遍历)

独自空忆成欢 提交于 2020-01-19 22:43:18
BeautifulSoup4:beautifulsoup库是解析、遍历、维护“标签树”的功能库。安装参考requests库 用法: from bs4 import BeautifulSoup soup = BeautifulSoup(‘<p>data</p>’,’html.parser’) #测试 import requests from bs4 import BeautifulSoup r = requests.get("http://python123.io/ws/demo.html") r.text demo = r.text soup = BeautifulSoup(demo,"html.parser") #对demo进行HTML的解析 Soup2 =BeautifulSoup(open(“D://demo.html”),”html.parser”) #写入文档 print(soup.prettify()) #将Beautiful Soup的文档树格式化后以Unicode编码输出,每个XML/HTML标签都独占一行 基本解析器: bs4的HTML解析器:BeautifulSoup(mk,’html.parser’)(安装bs4) lxml的HTML解析库:BeautifulSoup(mk,’lxml’)(安装lxml) lxml的XML 解析库:BeautifulSoup