码迷,mamicode.com
首页 >  
搜索关键字:pri    ( 1072个结果
spring入门3 -- 通过小项目理解IOC
现在通过一个小程序来了解IOC的思想,这个可能更加直观,首先项目结构就是controller(控制层,他决定接受数据以及分发),service(他负责抽象的一些服务逻辑),dao(负责跟数据库打交道) 先看一下我们操控的模型 package bean; public class User { pri ...
分类:编程语言   时间:2020-01-13 23:49:00    阅读次数:114
集合排序
自定义排序:Comparator & Comparable Comparable 结合 TreeSet 使用 Student.java @Data @AllArgsConstructor public class Student implements Comparable<Student>{ pri ...
分类:编程语言   时间:2020-01-11 16:41:55    阅读次数:85
【Python】成绩等级判断
score=eval(input("请输入成绩:\n")) if score>=60: grade="D" elif score>=70: grade="C" elif score>=80: grade="B" elif score>=90: grade="A" else:grade="E" pri ...
分类:编程语言   时间:2020-01-11 13:34:15    阅读次数:114
【Python】异常处理
例子1: try: num=eval(input("请输入一个整数:")) print(num**2) except: print("输入的不是整数") 例子2: try: num=eval(input("请输入一个整数:")) print(num**2) except NameError: pri ...
分类:编程语言   时间:2020-01-11 13:09:00    阅读次数:68
开放式社交网络(OSN网络)之八:企业现有系统接入OSN网络的解决方案客户端篇
企业现有系统已经有了自己的完整体系,要完成“跨界通信”需要在用户终端和服务器端进行一定的适配。 客户端适配需要做的工作包括:生成OSN账户、添加跨界好友、发送和接收跨界消息。 生成OSN账户 客户端现有的账户体系需要与OSN账户做一个映射。 OSN账户是ECDSA公钥的散列组合,ECDSA采用Pri ...
分类:其他好文   时间:2020-01-10 22:19:21    阅读次数:79
ThreadLocalRandom类
一、Random类 public class RandomTest { public static void main(String[] args){ Random random = new Random(); for (int i = 0; i < 10; i++){ System.out.pri ...
分类:其他好文   时间:2020-01-06 19:19:54    阅读次数:105
树莓派的GPIO初接触-LED灯
#抬头 import PRI.GPIO as GPIO import time #设置模式GPIO.setmode(GPIO.BOARD) #BOARD编号方式,基于插座引脚编号 #输出模式 GPIO.setup(11,GPIO.OUT) while: GPIO.OUTPUT(11,GPIO.HIG ...
分类:其他好文   时间:2020-01-05 13:43:06    阅读次数:71
32 字符串常用的方法 center find join split lower upper
第八课字符串中常用的方法:center方法#字符串方法:center#作用是:将字符串在一定的宽度区域内居中显示#这个方法和我们之前将的format中的^一样#^print("<"+"hello".center(30)+">")#<hello>#<hello>pri
分类:其他好文   时间:2020-01-05 09:44:30    阅读次数:116
Python中“*”和“**”的用法 || yield的用法 || ‘$in’和'$nin' || python @property的含义
一、单星号 * 采用 * 可将列表或元祖中的元素直接取出,作为随机数的上下限: import random a = [1,4] print(random.randrange(*a)) 或者for循环输出: import random a = [1,4] for i in range(*a): pri ...
分类:编程语言   时间:2020-01-04 18:46:13    阅读次数:131
CAS是什么
CAS是什么? 比较并交换 例子1: public class ABADemo1 { public static void main(String[] args) { AtomicInteger atomicInteger = new AtomicInteger(5); System.out.pri ...
分类:其他好文   时间:2020-01-03 00:33:34    阅读次数:114
1072条   上一页 1 ... 11 12 13 14 15 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!