安装express及postman var express = require('express') var app = express(); var calculation = require('./Calculation_route'); var cors = require('cors'); app.use(cors()); // var postList = require('./test'); var bodyParser = require('body-parser'); app.u…
Go所提供的面向对象功能十分简洁,但却兼具了类型检查和鸭子类型两者的有点,这是何等优秀的设计啊! Duck typing in computer programming is an application of the duck test 鸭子测试 鸭子类型 指示编译器将类的类型检查安排在运行时而不是编译时 type checking can be specified to occur at run time rather than compile time. <代码的未来> https:…