|
|
我的程序如下:+ d5 G3 l' F. y9 Y2 B
breed [dogs dog]
, k" \5 h Z) }2 W. H0 C9 t- Vbreed [cats cat]4 f& P$ O! }" C
breed [cows cow]9 t7 ^- T5 R; a
D% T6 _4 b: m' C! e
to setup5 A: K! W1 g8 y! }: V5 @' w
clear-all
" d d& Y. t9 b3 D; a+ h% I1 W set-default-shape dogs "dog"4 W7 R. c; U8 Q1 {3 T/ A) k8 a
set-default-shape cats "cat"3 c, x P4 @/ V0 y1 L$ T
set-default-shape cows "cow"! H2 Y* \3 }: h8 i" e
ask patch 0 1 [ sprout-dogs 1 ]
/ [* D+ F# d( T7 Q( j ask patch 0 0 [ sprout-cats 1 ]2 }/ ~1 f/ [! h2 r6 N, `0 M) o
ask patch 0 -1 [ sprout-cows 1 ]
/ [" B6 }( E3 H! gend# ?- J; u4 J- D/ } E
+ ^2 Y* Z, e1 {6 S' L x
3 R2 F! f2 @9 `2 p. Y这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:, \& S& e( a$ d
error while observer running SET-DEFAULT-SHAPE in procedure SETUP
) t, F/ f- @+ c1 ?" l: n7 J"dog" is not a currently defined turtle shape+ Q6 l0 K% b' B
(halted running of setup)
/ Z: m3 H; {0 W6 L' l% x+ s" B6 A
5 m0 |, N* y/ e3 D# y
- Q1 D& V1 z I# u我用的版本是4.0.4 请大虾们指教下。thanks! |
|