码迷,mamicode.com
首页 >  
搜索关键字:instance    ( 6546个结果
python中类型检测的两种方法
1.使用描述符+类的装饰器 class Typed: def __init__(self,key,type): self.key=key self.type=type def __get__(self, instance, owner): return instance.__dict__[self. ...
分类:编程语言   时间:2020-07-11 17:16:41    阅读次数:80
Eureka的细节(首页显示微服务名、外网访问显示正确ip、详情信息、服务发现)
一、首页显示的微服务名 Eureka 首页显示的微服务名默认为:机器主机名:应用名称:应用端口,也就是: ${spring.cloud.client.hostname}:${spring.application.name}:${spring.application.instance_id}:${se ...
分类:其他好文   时间:2020-07-10 21:08:38    阅读次数:111
maven自动分离lib config
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch ...
分类:其他好文   时间:2020-07-10 19:01:48    阅读次数:42
CAS 无锁优化
一、AtomXXX类 解决多线程问题的更高效的方法,使用Atom类 Atom类本身方法都是原子性的,但不能够保证多个方法连续调用都是原子性的. atom类的底层实是cas 二、CAS(Compare And Set) cas(V(要改的值),Expected(期望当前值),NewValue(新的值) ...
分类:其他好文   时间:2020-07-10 00:00:55    阅读次数:69
Spring IOC 配置文件加载--乐字节java
Spring配置文件加载spring.xml<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="htt
分类:编程语言   时间:2020-07-09 17:51:39    阅读次数:74
GameMaker Studio2 疑难杂症
###draw_text绘制中文 在GMS2绘制中文 ###一个xbox手柄被识别为2个手柄 GMS2中一个xbox手柄被识别为2个手柄问题及解决 ###在对象的draw事件中绘制文字会覆盖对象的动画,在step中绘制文字无效 This value sets the angle (rotation) ...
分类:其他好文   时间:2020-07-09 09:21:11    阅读次数:193
JAVA面向对象的学习 -------多态 Instance of 的学习(类型转换)
public static void main(String[] args) { //类型之间的转换 父 到 子 高 到 低 Person person = new Student(); //student这个对象装换为Student类型,我们就可以使用Student类型的方法了 Student s ...
分类:编程语言   时间:2020-07-08 23:17:20    阅读次数:74
python 元编程
用于构建实例的方法是__new__, 必须返回一个实例,返回的实例会作为__init__的第一个参数(self) __init__方法其实是初始化方法,真正的构造方法是__new__ 从__new__方法到__init__是最常见的方法,但是__new__方法也可以返回其他类的实例,此时,解释器不会 ...
分类:编程语言   时间:2020-07-08 15:27:21    阅读次数:79
python 3 基础之单例模式
1、单例模式 确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例,这个类称为单例类(比如win系统的回收站),单例模式是一种对象创建型模式 class Person(object): # 定义一个类属性,保存这个类创建的对象 # instance 属性在类外不使用,可以私有 __ins ...
分类:编程语言   时间:2020-07-08 15:05:40    阅读次数:74
asp.net core的 session存储
原文地址:https://www.cnblogs.com/wtujvk/p/8743035.html ASP.NET Core 保存Session的方法:a.内存方式,b.Redis,c.Redis集群,d.SqlServer 1.使用Session(进程内) 在startup中添加方法 servi ...
分类:Web程序   时间:2020-07-07 14:56:09    阅读次数:75
6546条   上一页 1 ... 22 23 24 25 26 ... 655 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!