使用begin  process和end关键字

把你的脚本分成 初始化 处理和清楚几个区域