Delphi之HelloWorld var str:string; //定义字符串类型变量str begin str:='Hello World!'; //给变量str赋值 ShowMessage(str); //弹出对话框 end;