arr := make([]int, 0)
reader := bufio.NewReaderSize(os.Stdin, 1024*1024)
for {
line, _, err := reader.ReadLine()
if err != nil {
if err == io.EOF {
break
}
panic(err)
}
str := strings.Split(string(line), " ")
for i:=0; i<len(str); i++ {
v, _ := strconv.Atoi(str[i])
arr = append(arr, v)
}
}
fmt.Println(arr)
我已经遵循了所有步骤(我知道):
return response()->noContent();
[launcher]: Cannot load browser "FireFox": it is not registered! Perhaps you are missing some plugin?
npm install karma-firefox-launcher --save-dev
karma.conf.js
按预期出现
plugins: [
require('karma-jasmine'),
require('karma-firefox-launcher'),
require('karma-ie-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
\node_modules\karma-firefox-launcher\
注意:我没有启动IE浏览器
这可能是一个误导性错误,真正的问题是Karma无法找到Firefox.exe吗?