当尝试使用Pylint启用linting,并使用autopep8进行save格式化时,由于权限被拒绝错误,因此都不会安装.
pylint的:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/mccabe.py'
Run Code Online (Sandbox Code Playgroud)
Autopep8:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pep8.py'
Run Code Online (Sandbox Code Playgroud) 这就是我所看到的:

该值设置为160.90,但显示为160.8999999999等.
<input class="form-control" ng-model="imprint.total"
value="{{imprint.total | number:2}}" readonly>
Run Code Online (Sandbox Code Playgroud)
它通过过滤某些输入来获得总数,但实质上它只是一个价格乘以数量.
这似乎设置正确,但显然不是,我无法看到它出错的地方.我正在尝试遍历"对象列表"并为列表中的每个项创建一个ulwith li,并将它们放在一个div.忽略涉及ID的所有内容.我有一种感觉,我不完全确定如何List.map回报.
type alias Product =
{ a : String
, b : String
, c : Int
, d : String
, e : String
}
type alias Model =
{ id : String
, products : List Product}
view : Model -> Html Msg
view model =
div []
[ input [ type' "text", onInput UpdateText ] []
, button [ type' "button", onClick GetProduct ] [ text "Search" ]
, …Run Code Online (Sandbox Code Playgroud)