Fortran语言输入含空格字符串 read(*,*) greeting write(*,*) greeting 使用默认输入格式的输出结果: 将默认输入read(*,*) 修改为read(*,'(a)')后,显示结果正常: