apply plugin: 'com.android.application' buildscript { repositories { maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' } maven{ url'htt ...
分类:
移动开发 时间:
2020-07-01 12:50:02
阅读次数:
77
最近需要对数据进行加密/解密, 因此选用了CryptoJS库, 对数据做DES算法的加密/解密 首选查看官方示例, 将密文进行Base64编码, 掉进一个大坑 <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/roll ...
分类:
编程语言 时间:
2020-06-30 20:36:43
阅读次数:
111
简述python中functools.wrapper() 首先对于最简单的函数: def a(): pass if __name__ == '__main__': print(a.__name__) 输出结果: a 然后稍微复杂点: def a(func): def wrapper() return ...
分类:
移动开发 时间:
2020-06-30 20:30:36
阅读次数:
105
##3.1 在编程的语境下,函数 (function) 是指一个有命名的、执行某个计算的语句序列 (se-quence of statements) 。在定义一个函数的时候,你需要指定函数的名字和语句序列。之后,你可以通过这个名字 “调用 (call)’’ 该函数。模块(module)是指一个包含相 ...
分类:
其他好文 时间:
2020-06-30 17:23:41
阅读次数:
55
import shelve a = shelve.open('1') b = [1,2,3] a['b'] = b a.close()a['b'] Traceback (most recent call last):File "C:\Users\Administrator\AppData\Local ...
分类:
其他好文 时间:
2020-06-30 17:22:01
阅读次数:
66
由于最近公司启动了微服务项目,使用框架springcloud搭建微服务,因此开始了解java。 由于工作中用的基本为apache、nginx,发现java程序需要部署在tomcat下,因此开始漫长的 tomcat“采”坑之路 首先说先项目基本情况微服务的基本框架需要部署在tomcat下基础业务也用j ...
分类:
编程语言 时间:
2020-06-30 12:41:08
阅读次数:
289
AtomicReference An object reference that may be updated atomically. The AtomicReference class provides reference objects that may be read and written ...
分类:
其他好文 时间:
2020-06-30 12:37:08
阅读次数:
65
变量赋值 x,y,z = 1,2,3 灵活使用,可以减少代码量 key,value = dict.popitem() *星号的使用可以代表多个值 #正常 x,y,z = 1,2,3 #参数列表数目不匹配 x,y,z = 1,2,3,4Traceback (most recent call last) ...
分类:
编程语言 时间:
2020-06-30 11:20:18
阅读次数:
65
在windows系统中,可以通过Regsvr32来实现注册ocx或者dl, 编程时,调用Regsvr32来注册,却不能正常执行。尤其是在Win7系统中,需要管理员身份才能运行。 使用下面的代码则能正常注册。 //注册 function RegisterDllServer(FileName: stri ...
准备 实体 @Data @Table(name = "task_apply") @Entity public class TaskApply { @Id @GeneratedValue @Column(name = "apply_id") private Long applyId; private ...
分类:
其他好文 时间:
2020-06-29 23:09:57
阅读次数:
144