|
5仿真币
Automod里面有没有一个可以存储数据的东西 例如像我上次的程序里使用了2 t J' {: f) B" j3 T5 q7 k
Aproductnum11
( ^0 b. w7 x# ~3 t$ U# H& S8 H Aproductnum12
1 a3 e y5 |& P; J0 ]0 l Aproductnum13
% g3 v; g; N9 S8 ?2 S( x! v# ]1 M Aproductnum14
" [. F, t' V" b Aproductnum15
* m; Q7 H4 e5 H Aproductnum21 . B- y8 [. j' Y/ L. n% A" A; z/ F
Aproductnum22
+ {4 ]# n1 H. `- c( A Aproductnum233 F7 n9 z9 j+ a, |- F! X
Aproductnum249 P9 k9 x4 W: m. a
。。。。
{9 ^/ f; d( m1 M/ {# w4 ? 这样需要定义太多的atribute$ |" j2 @. A, V
7 [, t* `; T* w7 O- a 我想让每个Aproductnum1 Aproductnum2 Aproductnum3 Aproductnum4 Aproductnum5 的值先预存到
6 Z4 z; K7 n/ F) H; |" Z- f( M1 e8 Q" z* M0 ?2 U
一个地方
7 @2 \ x* d) f, ` 然后再循环产生新的一轮的Aproductnum1 Aproductnum2 Aproductnum3 Aproductnum4 # ^4 P3 ~3 E) ` t* d
; c. I H+ B9 I4 W1 N2 u, QAproductnum5再存到这个地方% R) T$ D6 h8 g6 L
循环几轮后,将Aproductnum1 产生的值依次加 Aproductnum2 产生的值依次加 。。。+ [$ V- u( `; q8 z/ t
$ Z4 b M- ?) @1 b( f
有什么好方法吗 |
最佳答案
查看完整内容
每产生一组数据:
print Aproductnum1, "\t", Aproductnum2, "\t", Aproductnum3, "\t", Aproductnum4, "\t", Aproductnum5 to data.xls
如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。
双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
|