fortran中双引号和单引号的区别? [英] Difference between double and single quotation marks in fortran?

查看:34
本文介绍了fortran中双引号和单引号的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Fortran,对双引号和单引号的使用感到困惑.

I'm just starting out on Fortran and am confused with the usage of double vs single quotation marks.

推荐答案

它们是等效的.它们的用法没有区别.

They are equivalent. There is no difference in their usage.

您可以使用它来打印其中一个引号字符:

You can employ this to print one of the quotation characters:

print *, "'"

print *, '"'

先打印',然后打印".

注意:您也可以在一行中使用两个引号字符来打印一个:

Note: You can also use two quote characters in a row to print one:

print *, """"

print *, ''''

先打印",然后是'.

这篇关于fortran中双引号和单引号的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆