<span style="font-size:14px;">import simplegui import math # global variables ball_pos = [50,50] ball_radius = 12 ball_color = 'red' # help fuctions # classes # define event handlers # define click() def click(pos): global ball_pos,ball_co…
pyton 程序内容的颠倒,运用 [](列表) def reverse_string(s): """Returns the reversal of the given string.""" result = "" for char in s: result = char + result return result print reverse_string("hello") 输出的效果是: "ol…
Rust learning notes Rust Version 1.42.0 $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh version $ rustc -V rustc 1.42.0 (b8cedc004 2020-03-09) $ rustc --version rustc 1.42.0 (b8cedc004 2020-03-09) $ rustc -h Usage: rustc [OPTIONS] IN…
rt-thread learning notes 2018-01-15 > 001 具有相同优先级的线程,每个线程的时间片大小都可以在初始化或创建该线程时指定 rt_thread_t rt_thread_create(const char *name, void (*entry)(void *parameter), void *parameter, rt_uint32_t stack_size, rt_uint8_t priority, rt_uint32_t tick) 2018-01-16…
Mybatis Learning Notes 主要的参考是博客园竹山一叶的Blog,这里记录的是自己补充的内容 实体类属性名和数据库不一致的处理 如果是实体类的结果和真正的数据库的column的名称不对应, 需要做一个映射(后面有从数据库映射到实体类的库), 可以直接在sql语句中自己加, 也可以自己在mapper中定义一个对应别名. 基于xml配置和基于注解的两种方式: xml方式: 建表语句: CREATE TABLE orders( order_id INT PRIMARY KEY AUT…
Privilege Escalation Download the Basic-pentesting vitualmation from the following website: https://www.vulnhub.com/entry/basic-pentesting-1,216/ 1.Scan the target server using nmap. nmap -Pn -sS --stats-every 3m --max-scan-delay --defeat-rst-ratelim…
  Basic theory (i) Supervised learning (parametric/non-parametric algorithms, support vector machines, kernels, neural networks, )  regression, classification. (ii) Unsupervised learning (clustering, dimensionality reduction, recommender systems, dee…
1. 概述条件随机场(Conditional Random Field, CRF)是概率图模型(Probabilistic Graphical Model)与区分性分类( Discriminative Classification)的一种接合,能够用来对“结构预测”(structured prediction,e.g. 序列标注)问题进行建模. 如图1,论文 [1] 阐释了 CRF 与其他模型之间的关系. 图1. CRF 与 其他机器学习模型对比[src] 本文我们重点关注输入结点独立的“线性链…
简介 简单的说 Node.js 就是运行在服务端的 JavaScript. Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台. Node.js是一个事件驱动I/O服务端JavaScript环境,基于Google的V8引擎,V8引擎执行Javascript的速度非常快,性能非常好. 安装 下载地址:https://nodejs.org/en/download/ wget https://nodejs.org/dist/v10.16.3/node-v10.16.3.…
简介 Apache Thrift软件框架(用于可扩展的跨语言服务开发)将软件堆栈与代码生成引擎结合在一起,以构建可在C ++,Java,Python,PHP,Ruby,Erlang,Perl,Haskell,C#,可可,JavaScript,Node.js,Smalltalk,OCaml和Delphi等语言. Thrift是Facebook开发的一个软件库和一套代码生成工具,用于加快高效且可扩展的后端服务.它的主要目标是通过抽象每种语言中倾向于需要在每种语言实现的公共库中进行最大程度的自定义.具…