摘要:
numpy.exp():返回e的幂次方,e是 常数,2.71828 np.power(): 计算 x 的 y 次方。 import numpy as np #计算常数e的幂次方 np.exp(2) #计算 x 的 y 次方 np.power(3,2) exp,高等数学里以自然常数e为底的指数函数,它 阅读全文
摘要:
import { error } from "jquery" function open_door() {console.log('door is opened')} function GetValue():string{ return 'ok' } open_door() let value2 = 阅读全文
摘要:
import { extend } from "jquery" //映射类型 type Account ={ id:number isEmployee:boolean notes:string[] } //所有字段都是可选的 type OptionalAccount={ [k in keyof Ac 阅读全文
摘要:
//类和继承 type Color2 ='Black'|'White' type File2 ='A'|'B'|'C'|'D'|'E'|'F'|'G'|'H' type Rank2 = 1|2|3|4|5|6|7|8 //1 class Position { constructor( public 阅读全文