问题描述
通常我将需要的值四舍五入为:var c = localStorage.getItem("customer")
var s = localStorage.getItem("shipping")
var p = localStorage.getItem("payment")
...
setIsDone({
customer: c
? JSON.parse(c)
: false,shipping: s
? JSON.parse(s)
: false,payment: p
? JSON.parse(p)
: false,});
...
//save isDone to local storage
localStorage.setItem(name,JSON.stringfy(true));
但是,在我的情节中,它不允许我舍入数字 print('R-squared:',round(metrics.r2_score(test_labels,pred),2),'')
它一直显示四位数。
有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)