|
我的程序如下:
2 i! p& g5 @. g# ?+ P% ]breed [dogs dog]
4 u" f2 b1 C$ kbreed [cats cat]- v9 m3 _1 F- p5 n+ \' {" q- ^
breed [cows cow] I6 G' b. |# t6 \: H( C
; C. O/ u! f, _& X1 F* o
to setup2 @6 k) n, b' O e$ J* X
clear-all
' U4 ?2 u# i. I' f! @" _8 c' V set-default-shape dogs "dog"
1 b2 i2 X5 t0 K: c/ H set-default-shape cats "cat"
5 ?" Z8 o: I8 `- _ set-default-shape cows "cow"0 q" l5 o2 P- w
ask patch 0 1 [ sprout-dogs 1 ]; j# c, T3 f) w u3 P
ask patch 0 0 [ sprout-cats 1 ]8 Q8 t( d* R& ]# c* `& l5 N
ask patch 0 -1 [ sprout-cows 1 ]
1 M& t/ P* z& w- p4 N0 [end- H' l+ B" Q [
4 m. m, P z! n0 U; E6 ]
$ L& k( v h3 V/ q) U3 R, v这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:
# g" N; I' P, ~* R. _error while observer running SET-DEFAULT-SHAPE in procedure SETUP
& A# p0 f! t' a# m) P+ ^- B- W"dog" is not a currently defined turtle shape
( M! b1 ?6 U Q! l Y0 t(halted running of setup)
, `0 Q( [' D5 A$ d* S1 d) `; Y* c# U
- |& }1 @2 A/ M' ?
我用的版本是4.0.4 请大虾们指教下。thanks! |
|