Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm just starting out on Fortran and am confused with the usage of double vs single quotation marks.
それらは同等です。使い方に違いはありません。
これを使用して、引用文字の 1 つを出力できます。
print *, "'" print *, '"'
が最初'に印刷され、次にが印刷され"ます。
'
"
注: 引用符を 2 つ続けて使用して、1 つを印刷することもできます。
print *, """" print *, ''''
が最初"に印刷され、次にが印刷され'ます。