fortran语句 open(unit = 10,file = trim(output_file),status = 'unknown')中trim是什么意思open(unit = 10,file = trim(output_file),status = 'unknown')是fortran语句,语句中trim()是什么意思呢?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 07:43:37
fortran语句open(unit=10,file=trim(output_file),status=''unknown'')中trim是什么意思open(unit=10,file=trim(outpu

fortran语句 open(unit = 10,file = trim(output_file),status = 'unknown')中trim是什么意思open(unit = 10,file = trim(output_file),status = 'unknown')是fortran语句,语句中trim()是什么意思呢?
fortran语句 open(unit = 10,file = trim(output_file),status = 'unknown')中trim是什么意思
open(unit = 10,file = trim(output_file),status = 'unknown')是fortran语句,语句中trim()是什么意思呢?

fortran语句 open(unit = 10,file = trim(output_file),status = 'unknown')中trim是什么意思open(unit = 10,file = trim(output_file),status = 'unknown')是fortran语句,语句中trim()是什么意思呢?
trim 就是去掉字符串后面的空格.
如果 output_file = 'abcdef.txt '
那么 trim 后就是 'abcdef.txt'
作为文件名传递时,有没有 trim 都是一回事.