2021年12月2日
摘要: Factorization or factoring consists of writing a number or another mathematical object as a product of several factors, usually smaller or simpler obj 阅读全文
posted @ 2021-12-02 23:47 华容道专家 阅读(240) 评论(0) 推荐(0)
摘要: (x - 1)(x2 + x + 1) = x3 - 1 1 import ply.lex as lex # pip install ply 2 import ply.yacc as yacc 3 4 def parse(s): 5 t = {} 6 tokens = ('NUM', 'VAR'); 阅读全文
posted @ 2021-12-02 20:17 华容道专家 阅读(399) 评论(0) 推荐(0)
摘要: 如果先给学生讲一点汇编,再讲一点C,再一点C++或其它OOP语言,再一点python或其它脚本语言,最后甚至一点机器学习框架,那会怎样? 学生肯定喊“爽!”啊。几十行我就能整个人脸识别出来。在PUSHA和POPA出现之前,几十行汇编就够保存和恢复寄存器用。 然后想学的再深耕,不想学的直接调参,或者做 阅读全文
posted @ 2021-12-02 13:02 华容道专家 阅读(79) 评论(0) 推荐(0)
摘要: A few could not resolve to do this, but the greater part complied. They made a blazing heap of all their valuables, and, when those were consumed, set 阅读全文
posted @ 2021-12-02 11:04 华容道专家 阅读(68) 评论(0) 推荐(0)
摘要: 字符串层面:add(35, 2)写成+352不行,得+35空格2, +35 2. 3+5空格*2=8*2=16; 3+空格5*2=3+10=13. 3+5 *2, 3 +5*2,机器无所谓,人主子受不了“喵了个去,这有个空格?!” token流层面:+ opnd * opnd opnd和opnd + 阅读全文
posted @ 2021-12-02 08:26 华容道专家 阅读(50) 评论(0) 推荐(0)
摘要: Search(c++在线运行). 有的网站很慢——不是下面的程序有问题。 #include <string.h> #include <stdio.h> #include <new> typedef unsigned char byte; struct C1 { char m_str[5]; C1(c 阅读全文
posted @ 2021-12-02 00:27 华容道专家 阅读(47) 评论(0) 推荐(0)