首页 > 建站教程 > dart >  Dart编程实例 - dart字符串正文

Dart编程实例 - dart字符串

Dart编程实例 - dart字符串

void main() {

   String str1 = 'this is a single line string';

   String str2 = "this is a single line string";

   String str3 = '''this is a multiline line string''';

   String str4 = """this is a multiline line string""";

   print(str1);

   print(str2);

   print(str3);

   print(str4);

}