|
我的程序如下:
* L; o* U& i/ P5 N/ p3 Zbreed [dogs dog]* M( E# l, u* } z" u8 w' i
breed [cats cat]4 A. R& k4 e/ ]
breed [cows cow]& t U4 _$ H' i- t [- z# A
2 O' q* X/ h% _+ y7 S0 wto setup, Y" G' U7 |( Q* S
clear-all
) m3 k7 U- d2 X# Z8 v0 g, W set-default-shape dogs "dog"
; s5 B( u; r1 i8 R: n set-default-shape cats "cat"
. L: a5 y4 K0 ]: @- Y4 y set-default-shape cows "cow"+ P; p* F1 J, {* B4 @
ask patch 0 1 [ sprout-dogs 1 ]
' R; l+ [2 B# \0 V6 ^6 O) H ask patch 0 0 [ sprout-cats 1 ]
" s- ]# g% Z$ [( m0 k' M5 A ask patch 0 -1 [ sprout-cows 1 ]7 {1 Q, a; `" K, b" p2 G" R# m. b" \% t
end6 b5 k2 m* E% b q7 v
~' \$ _: a5 _; M' n
" l. j4 d q* y0 i# p3 ]& w
这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:# A2 e7 Y$ ?3 e% ^- y! Y6 y
error while observer running SET-DEFAULT-SHAPE in procedure SETUP
* [8 F3 y& n5 `2 V# T"dog" is not a currently defined turtle shape U% ~: m |, C! [. |
(halted running of setup)* G- G" ]" x) t, C) D. e$ H3 l
4 |% o1 h9 P9 f
2 k- Q* d& G- x我用的版本是4.0.4 请大虾们指教下。thanks! |
|