python newbie here plz help
indexes:
# AUTOGENERATED
# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run. If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying "# AUTOGENERATED"). If you want to manage some indexes
# manually, move them above the marker line. The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.
- kind: Post
properties:
- name: user
- name: created
direction: desc
- kind: Post
ancestor: yes
properties:
- name: created
direction: desc
- kind: Post
ancestor: yes
properties:
- name: date
direction: desc
此处形成的错误是意外属性' name'对于Index类型的对象。 使用以下命令时会发生这种情况
gcloud deploy app index.yaml
答案 0 :(得分:0)
您的yaml文件缩进错误,应该是这样的:
library(zeallot)
equation = function(p){
c(d0, d11, d12, k11, k12) %<-% p
result = d0 + d11*k11 + d12*k12
return(result)
}
equation(list(d0=1,d11=2,d12=3,k11=100,k12=1000))
## 3201