如果你用的 windows 系统的话,用 '\' 代替 '/'
[Fortran] 纯文本查看 复制代码 dirname_1 = "total"
dirname= "part"
filename = trim(model)//'.txt'
call system("mkdir "//dirname_1)
call system("mkdir "//trim(dirname_1)//'\'//dirname)
open(30,file=trim(dirname_1)//'\'//trim(dirname)//'\'//filename)
do i=0,10
radius=i*0.1
write(30,'(5f15.6)') radius
enddo |