您可以将格式存储为模块级别的字符.例如
module foo
implicit none
character(len=20), parameter :: form = "(1X,A)"
contains
subroutine bar
...
write(my_unit, form) "Hello, World"
end subroutine bar
end module foo
| 归档时间: |
|
| 查看次数: |
612 次 |
| 最近记录: |