1)赋值用箭头“←”
(2)for i←0 to 10 //for、while、if 后面的条件语句都不用加括号
do XXXXX //for后面必定要紧跟缩进的do
XXXXX
(3)while time<10
do xxxxx //while后面必定要紧跟缩进的do
xxxxx
(4)if i=10
then xxxx
else xxxx //else 和 then 要在对齐
(5)if i=10
then xxxx //if 后面必定跟上then,else后面不用跟then
elseif i=9
then xxxx
yyyy
else xxxx //else 跟在elseif 的 then 对齐
(6)elseif 要合并。
(7)同一嵌套等级的语句要对齐。
(8)定义变量的语句不用写出来,但必须在注释中给出
(9)写完的伪代码最后必须在每行伪代码前加上序号
本文转自:http://asher.blog.163.com/blog/static/1741745662011111104431998/