01 2021 档案
摘要:代码片段1 #include <stdio.h> int main() { unsigned int x = 100; unsigned int y = 1; int *p = &x; printf("x=%d\n", x); //printf("lalalala%n\n", p); printf(
阅读全文
摘要:bytes_to_long() 函数在Ctypto库中,最新的3.9.9版本用如下命令去安装Crypto库: pip(3) install pycryotodome 函数引用方式:from Crypto.Util.number import bytes_to_long 使用os.urandom(le
阅读全文
摘要:参考 https://blog.csdn.net/qq_41668789/article/details/84719348 在 scanf 和 printf 里效果是不一样的。 scanf()函数 “*”符用以表示该输入项,读入后不赋予相应的变量,即跳过该输入值。 scanf("%*d %*d %d
阅读全文
摘要:roc曲线 1、roc曲线:接收者操作特征(receiveroperating characteristic),roc曲线上每个点反映着对同一信号刺激的感受性。 横轴:负正类率(false postive rate, FPR),特异度,划分实例中所有负例占所有负例的比例;(1-Specificity
阅读全文
摘要:参考自: https://blog.csdn.net/qq_33757398/article/details/108355003 例如输入列表: [8, 2, 4] 期望输出: [2, 3, 1] 一句话可以搞定:rank = [index+1 for index, value in sorted(
阅读全文
摘要:代码 class A: def __init__(self): self.x = 111 self.y = 'test' def testA(self, inp): print("in a class") print("{}--{}--{}".format(self.x, self.y, inp*2
阅读全文
摘要:使用hexdump 使用xxd
阅读全文