面试题答案
一键面试program string_manipulation
implicit none
character(len=50) :: str1, str2, full_str, sub_str
str1 = 'Hello'
str2 = ', World!'
full_str = trim(str1) // trim(str2)
sub_str = full_str(5:5 + 8 - 1)
print *, '拼接后的字符串: ', full_str
print *, '提取的子串: ', sub_str
end program string_manipulation