编程语言-月排行
import xlwt import StringIO import web urls = ( '/rim_request','rim_request', '/rim_export','rim_export', '/(.*)', 'index' ) class rim_export: #render ...
分类:编程语言 时间:2018-09-10 22:50:01 收藏:0 阅读:997
依赖包: 源码: ...
分类:编程语言 时间:2018-09-13 11:40:26 收藏:0 阅读:823
提交一颗树,三级区域个数大于1000个导致提交失败!!! 溯源了下Spring的代码,找到了DataBinder,先解释下DataBinder类的作用,见链接 http://docs.spring.io/spring/docs/1.2.x/api/org/springframework/valida ...
分类:编程语言 时间:2018-09-14 13:49:00 收藏:0 阅读:601
importError:cannot import name 'InvalidArgumentException' 报错解决方法: 安装好了Appium-Python-Client,去检测的时候报以下错误 去C:\Python35\Lib\site-packages\selenium\common找 ...
分类:编程语言 时间:2018-09-23 13:00:59 收藏:0 阅读:266
1、利用key排序 d1 2d2 4d3 3d4 1 2、利用value排序:__getitem__ d4 1d1 2d3 3d2 4 反序:reverse=True d2 4d3 3d1 2d4 1 3、对dict_items进行排序 [('d2', 4), ('d3', 3), ('d1', 2 ...
分类:编程语言 时间:2018-09-27 12:32:52 收藏:0 阅读:345
在python中,需要将整数均分成N等分。python divide integers N equal parts sum 拆分整数 def split_integer(m, n): assert n 0 quotient = int(m / n) remainder = m % n if rema ...
分类:编程语言 时间:2018-09-28 11:39:18 收藏:0 阅读:989
第四讲 消隐算法一、消隐消隐:(消除二义性)就是必须在绘制时消除被遮挡的不可见的线或面,习惯上称作消除隐藏线和隐藏面;消隐不仅与消隐对象有关还与观察者的位置有关。1.1消隐的分类1.1.1按消隐对象分类(1)线消隐:消隐对象是物体上的边,消除的是物体上不可见的边。(2)面消隐:消隐对象是物体上的面, ...
分类:编程语言 时间:2018-09-29 23:31:25 收藏:0 阅读:504
最近在学习springBoot时,其中有很大的一个核心的只是点:自动配置。 通过 DataSourceAutoConfiguration 学习 自动配置是如何实现的。 自动配置中比较重要的一个点就是 条件化配置? 1、条件化配置 JdbcTemplateCondition 的定义 如何 JdbcTe ...
分类:编程语言 时间:2018-10-01 19:49:26 收藏:0 阅读:669
1.自定义异常类 import lombok.Data; @Data public class UserException extends RuntimeException { private Long id; public UserException(Long id) { super("user ...
分类:编程语言 时间:2018-10-04 02:47:25 收藏:0 阅读:294
前言:最近两天在尝试写一个工具 jar 包,里面包含后台处理的 java 代码,包含前端 html、js、css、字体文件等,过程中解决了访问 jar 包里的静态资源问题,所以记录下来。 附:自己的一个 jar 包源码 https://github.com/yuleGH/querydb 方式一: 最 ...
分类:编程语言 时间:2018-10-04 05:52:49 收藏:0 阅读:992
Python_报错:SyntaxError: unexpected character after line continuation character 原因:写入的文件内容不正确,应处理为字符串 写成这样就ok了:os.chdir(time_year+"\\"+time_month+"\\"+t ...
分类:编程语言 时间:2018-10-04 18:46:47 收藏:0 阅读:497
package com.xuyigang1234.chp01; public class Demo9 { public static void main(String[] args) { int oldArr[]={1,3,4,5,0,0,6,6,0,5,4,7,6,7,0,5}; //旧数组静态初... ...
分类:编程语言 时间:2018-10-14 10:44:17 收藏:0 阅读:545
前言在SpringBoot很火热的时候,阿里巴巴的分布式框架Dubbo不知是处于什么考虑,在停更N年之后终于进行维护了。在之前的微服务中,使用的是当当维护的版本Dubbox,整合方式也是使用的xml配置方式。改造前之前在SpringBoot中使用Dubbox是这样的。先简单记录下版本,Dubbox-2.8.4、zkclient-0.6、zookeeper-3.4.6。项目中引入spring-con
分类:编程语言 时间:2018-10-15 11:28:03 收藏:0 阅读:293
1.问题排查 项目配置 springboot 2.1 maven配置jackson 出现的场景: 服务端通过springmvc写了一个对外的接口,查询数据中的表,表中有一个字段属性是时间戳,返回一个json字符串,其中该json带有日期,格式为yyyy MM dd HH:mm:ss 客户端调用该ht ...
分类:编程语言 时间:2018-10-16 01:00:19 收藏:0 阅读:926
设置pom引用 配置resttemplate 在controller中调用 启动Springboot项目 ...
分类:编程语言 时间:2018-10-22 11:23:22 收藏:0 阅读:516
转发别人的 如果你是用eclipse作为开发环境,配置了maven依赖以后,还需要在eclipse/myeclipse中手动安装lombok。 lombok 安装 使用 lombok 是需要安装的,如果不安装,IDE 则无法解析 lombok 注解。先在官网下载最新版本的 JAR 包。 1. 将 l ...
分类:编程语言 时间:2018-10-25 17:26:06 收藏:0 阅读:436
1、新建run.txt文件 2、在文件中输入一下内容: @echo off start javaw -jar xx.jar exit 3、保存,修改文件名为run.bat4、双击即可 5、删除windows后台程序 tasklist 查看进程 taskkill /? 查看杀进程命令的帮助 taskk ...
分类:编程语言 时间:2018-11-03 18:59:26 收藏:0 阅读:271
import turtle pen = turtle.Pen() pen.speed(10) width = 30 # 格子宽度 count = 18 # 横向纵向格子数 o = width * count / 2 # 开始绘制原点 for i in range(count + 1): pen.pe... ...
分类:编程语言 时间:2018-11-06 13:14:43 收藏:0 阅读:758
//需要创建对象 GameObject prefab; //创建对象的规定位置或父物体 Transform tr; //创建出对象 Instantiate(prefab); //创建对象,并设定位置和角度 Instantiate(prefab,tr.position,tr.rotation); // ...
分类:编程语言 时间:2018-11-09 19:54:31 收藏:0 阅读:1064
Unity场景切换SceneManager 官方文档:传送门 静态方法 创建场景 CreateScene Create an empty new Scene at runtime with the given name. 得到当前激活的场景 GetActiveScene Gets the curre ...
分类:编程语言 时间:2018-11-11 15:26:32 收藏:0 阅读:286
133033133233333425642
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!