码迷,mamicode.com
首页 >  
搜索关键字:union all    ( 25526个结果
Django 设置全局变量(所有视图函数模板都可以使用)
# 共有变量 def global_params(request): # 产品分类 prod_cat_list=Prodcat.objects.all().only("name") return {"prod_cat_list":prod_cat_list} settings.py文件的配置 # 找 ...
分类:其他好文   时间:2019-12-05 10:23:12    阅读次数:679
通过定义__lt__,直接sorted排序自定义对象。
class Demo: def __init__(self, x, y, z): self.x = x self.y = y self.z = z @property def all_sum(self): # 方法转属性 return self.x + self.y +self.z def __lt ...
分类:编程语言   时间:2019-12-05 09:12:33    阅读次数:88
[Daily Coding Problem] Find the total number of solutions of a linear equation of n variables
Given a linear equation of n variables, find the total number of non-negative integer solutions of it. All coefficients are positive. Example: input: ...
分类:其他好文   时间:2019-12-05 01:19:58    阅读次数:91
格式化hdfs以及namnode没启动
先stop-all.sh 删除hdfs-site.xml中的这两个目录 然后删除core-site.xml 中的这个目录 然后格式化hdfs hdfs namenode -format 即可启动成功 注意:顺序不要错,很多人namnode起不来都是顺序错了 ...
分类:其他好文   时间:2019-12-04 19:59:58    阅读次数:108
RocketMQ 整合SpringBoot发送事务消息
环境 jdk: 8u22rocketmq: rocketmq-all-4.5.2-bin-releasespringboot: 2.1.6.RELEASErocketmq-springboot: 2.0.3 发送流程(事务消息) Rocket发送事务消息:1、由producer发送prepare(半 ...
分类:编程语言   时间:2019-12-04 18:32:23    阅读次数:359
wordpress 获取指定作者的所有 post meta
$args = array( 'post_type' => array( 'post','knowledgebase'), 'post_status' => 'publish', 'author' => $author_id, 'numberposts'=> $author_all_posts ); ...
分类:Web程序   时间:2019-12-04 13:39:10    阅读次数:162
Less 4
这道题也是简单到批爆。 在这里输入",然后提示"),也就是少了"),将后面的"再用 +注释掉就可以了。 ?id=1.1") union select 1,2,database() + 再继续库、表、列名一气呵成就完事了。 sqlmap sqlmap u "http://127.0.0.1/Less ...
分类:其他好文   时间:2019-12-04 10:36:31    阅读次数:76
python批量执行脚本,使用unittest.TestSuit(); unittest.TextTestRunner().run(); addTest();unittest.defaultTestLoader.discover();
#alltest.py中内容如下import unittest,osdef all(): #path="D:\\study\\python_api_test\\test1203" #手动添加路径 path=os.getcwd() #获取路径 files=unittest.defaultTestLoa ...
分类:编程语言   时间:2019-12-04 01:46:25    阅读次数:332
【leetcode】1271. Hexspeak
题目如下: A decimal number can be converted to its Hexspeak representation by first converting it to an uppercase hexadecimal string, then replacing all o ...
分类:其他好文   时间:2019-12-03 19:50:45    阅读次数:128
Spring-boot的debug调试
xml文件中配置: 1 <property> 2 <name>scf.server.vm.all</name> 3 <value>-Xms512m -Xmx512m -Xmn128m -Xss1024K -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m ...
分类:编程语言   时间:2019-12-03 19:30:05    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!