|
|
5仿真币
Automod里面有没有一个可以存储数据的东西 例如像我上次的程序里使用了
; t& G' R0 l5 a+ ^. T Aproductnum11 ; s! y, w" Q/ j* L, j
Aproductnum12
) t8 ~: Z( V: i e6 _. c Aproductnum13
n k. c6 B3 |, H1 V& j Aproductnum14
; L; Q* n3 L" L- k Aproductnum15
4 v& l6 G* v1 `: Q, w! \6 O& I Aproductnum21
0 B! r5 x, h- |# n3 b+ Z4 ?; Z Aproductnum22
+ |' x( R q3 A7 Y: d Aproductnum23
8 c2 p% t% G% _+ S# w Aproductnum24
6 ?: W9 U5 d( T8 g。。。。
4 W$ S) L+ ?3 o- I9 N6 Y6 b 这样需要定义太多的atribute4 s) \/ ]- q+ g! X; Q; }9 f
" g1 M0 B, O8 k" `0 U 我想让每个Aproductnum1 Aproductnum2 Aproductnum3 Aproductnum4 Aproductnum5 的值先预存到
" U! ]! Z5 u% `5 L* Q- o1 T+ C/ f- m8 T" c3 v: [
一个地方 % B' Y. _, O6 V$ _& B3 w; E% C1 j8 j
然后再循环产生新的一轮的Aproductnum1 Aproductnum2 Aproductnum3 Aproductnum4 6 g5 g! h" x% ]/ T
- C5 `3 j9 G. s+ g8 j: I; G
Aproductnum5再存到这个地方5 B! n3 ^. K- C* s" _) _9 W; R
循环几轮后,将Aproductnum1 产生的值依次加 Aproductnum2 产生的值依次加 。。。1 r) x2 J1 B/ V' b9 T: R( N
7 q5 R6 D6 A0 a( x% V2 U 有什么好方法吗 |
最佳答案
查看完整内容
每产生一组数据:
print Aproductnum1, "\t", Aproductnum2, "\t", Aproductnum3, "\t", Aproductnum4, "\t", Aproductnum5 to data.xls
如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。
双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
|