|
我的程序如下:# J2 O; p, u. j
breed [dogs dog]
8 P" i: C: n) Qbreed [cats cat]
/ e o1 l$ ~& K! `) `3 o7 kbreed [cows cow]1 b# {! ~ d# T q. C3 b- t2 G
" n* r5 H/ l! ~/ }9 q$ r) R
to setup
" f8 L) c8 b' U+ P( d7 f( L! {/ i clear-all
5 G: |9 M! _! X1 O1 `2 C g) i set-default-shape dogs "dog"
- u {& d5 m( l5 V S! h1 E, \: j/ ~ set-default-shape cats "cat"
( A6 Y3 _- w3 _( @' {! f: t set-default-shape cows "cow"
7 N0 J. z" X3 p9 y ask patch 0 1 [ sprout-dogs 1 ]7 W: J5 ]9 b* O0 u* z7 y" R7 U
ask patch 0 0 [ sprout-cats 1 ]
7 ~9 k4 O1 E p2 r% _ ask patch 0 -1 [ sprout-cows 1 ]8 N) g- p8 U8 G- M
end' v" [# P4 H8 T
1 u1 U m2 d6 D4 a* W- m
! P1 e( V5 M! j* b" ~: N, w这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:/ G m' j$ x% a
error while observer running SET-DEFAULT-SHAPE in procedure SETUP
* M" V4 E8 W& w1 O) m- G"dog" is not a currently defined turtle shape
% l4 I" E7 k$ e: U/ {# d(halted running of setup)
. H8 q. ~4 ^( c# G2 p B) u+ r
# F- P, v7 i& r% _9 o% _1 ?# v! f: G; b7 G5 Y5 e( ?: S4 p) N. E
我用的版本是4.0.4 请大虾们指教下。thanks! |
|