Ruby编程语言学习笔记4
摘要:
对应Ruby编程语言第五章#Ruby使用换行符、分号、then关键字对条件表达式(expression)和后续内容(code)进行分割#if条件式=beginifexpressioncodeend或者ifexpressionthencodeend上边第一个我们用的是换行符,第二个我们用的是关键字then=enda=if1==15endputsaa=if1==1then5endputsaa=if1==1;5endputsa#作为修饰符的if#codeifexpressiona=5if1==1putsa#unless条件式=begin#unlessconditionthencodeend或者unl 阅读全文
posted @ 2012-06-06 16:22 翔如飞飞 阅读(206) 评论(0) 推荐(0)
浙公网安备 33010602011771号