全局变量:以$开头 实例变量:以@开头 @cust_id=id Ruby 常量: 常量以大写字母开头 转载于:https://www.cnblogs.com/wanghouxuan/p/7097519.html