![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 68
US_579
这个作者很懒,什么都没留下…
展开
-
OPEN文件操作(Python)
#OPEN文件操作(Python)f = open('file_name ','读写模式')#读写模式:r只读,r+读写,w新建(会覆盖原始文件如果有的话),a追加,b二进制文件.w = write 写r = read 读b = bytes 二进制a = append 追加‘##### 读写模式类型:’rU 或 Ua 以读方式打开w 以写方式打开,a 以追加模...原创 2018-10-03 16:35:29 · 408 阅读 · 0 评论 -
WK01: Crypto Building Blocks
@ WK01: Crypto Building BlocksPublic key and Prviate key公钥私钥是不对称的不对称指的是用一把钥匙锁住必须用另一把钥匙打开Alic拥有Bob的公钥,利用Bob的公钥加密plaintext m,再将m发送给Bob,只有用Bob的私钥才能重新获得明文m.(用Bob的公钥解密是解不开的)-为私钥 +为公钥disadvantage: th...原创 2019-02-23 14:28:56 · 346 阅读 · 0 评论 -
AES,DES,3DES加密方式的特点
SUMMARYDES:Data Encryption Standard(数据加密标准,又美国国密局,选中的IBM的方案,密钥长度为56,标准提出是要使用64位长的密钥,注意: 实际中DES算法只用了64位中的56位密钥)3DES:trip DES(3级DES,是DES的升级版,主要是为了应对快速发展的计算机能力,能够在24小时内暴力破解传统的56位长度密钥的DES,而3DES相当于对统一数据块...原创 2019-03-04 20:07:30 · 3261 阅读 · 0 评论 -
MAC 和 HMAC 的区别
MACmessage authentication codethe propurse of MAC is to verify the intergrity of the messagesenderuse the hash function to get H(m)concate message and H(m)send the H(m) + m to the receiverrec...原创 2019-03-16 10:35:39 · 5900 阅读 · 0 评论 -
GSOE9820 Project management期中复习
Various definations11.Critical path 选择total slack为0的即2-5-102.整个project duration为critical path的时长,即完成这整个项目所需要最短(也就是需要的最长时间)的时间 为 443.LF(late finish)即为方框右下角的那个数字activity 3Answer :154.FS(Free slack...原创 2019-03-16 21:41:21 · 1258 阅读 · 0 评论 -
Optimal binning algorithm using dynamic programming
COMP9318-19T1LAB2Optimal binning algorithm using dynamic programmingError Sum of Squares (SSE)SSE is the sum of the squared differences between each observation and its group’s mean. It can be u...原创 2019-03-12 20:21:21 · 728 阅读 · 0 评论 -
数据变换
数据变换min-max normalizationv is input valuenew_max and new_min 是线性变换后的区间长度, 最小-最大规范化就是对原始数据区间进行线性变换。z-score normalization此情况是在属性 A 的最大和最小值未知,或局外者左右了最大-最小规范化时使用normalization by decimal scaling...原创 2019-03-19 06:23:18 · 472 阅读 · 0 评论 -
如何对cprofile生成文件进行分析
原创 2019-04-06 11:17:42 · 1158 阅读 · 0 评论 -
Vitberi Algorithem
Vitberi Algorithemthe code is in link belowhttps://github.com/US579/DataMining-ProjectHow to runDataset in this case :State_File ='./toy_example/State_File'Symbol_File='./toy_example/Symbol_File...原创 2019-04-24 09:43:34 · 705 阅读 · 0 评论