[Fortran] 纯文本查看 复制代码 Module var_mod
integer, parameter ::n = 24
real SPZFS(n),QW(n),FS(n),TDL(n),BDL(n),LDL(n)
End Module var_mod
subroutine test
use var_mod
implicit none
integer ::i
open(107,file='D:\Desktop\read\weatherdata.csv',status='old')
do i=1,n
read(107,*) SPZFS(i),QW(i),FS(i),TDL(i),BDL(i),LDL(i)
end do
close(107)
end subroutine test
program main
use var_mod
implicit none
call test
write(*,*)SPZFS(n)
end |