|
Post by account_disabled on Jan 27, 2024 19:59:52 GMT -12
他们并不总是我们的错。有时已建立的技术和工具例如在客观上根本不太适合为我们设置的任务。我希望读者不要误解我。我不会假装成为所有智慧的源泉并写出唯一正确的方法。这里包含的论文得到了相当扎实的经验的支持但是我相信您总是可以学到一些东西。做到这一点的一个好方法是受到批评尤其是受到专家的批评。重击很难与更严肃的编程语言相比中表格的组成充其量只是个玩笑。老实说尽管我个人在中写了很即使以难以理解的逻辑而闻名也不会长到的脚跟。 即使定义变量的琐碎活动几个陷阱正在等待我们。让我们看以下示例找不到命令阿拉有一只猫找不到 手机号码数据 命令回声阿拉有一只猫在第一个示例中程序员借用了一个从其他语言中已知的公式该公式定义了变量。为了提高可读性他决定将变量与白色字符分开。在第二个示例中正确地做到了并且在满意的情况下在第三个示例中他说他会写整句话。似乎合乎逻辑的是如果允许您在单个或双撇号中定义不带敷料的变量以后有所不同则还应该允许您用白色字符定义这样的变量。 没有什么比这更错了如果我们在变量的定义之后放置一个命令这就是对字符串的看法则其范围也将更改范围这将使问题进一步复杂化。这由我们使用空指令的最后一个示例显示同时重置变量。为了更好地说明这一点并使问题进一步复杂化让我们定义两个变量并逐行启动它们第二次一起启动它们。回声预期行为回声预期行为回声对于没有脚本经验的人结果可能并不明显和似乎还不够仍然需要考虑各种用途和和特殊变量。在许多语言中两个引号都是等效的例如。在别人用于写字符串单个字符。这种语言的一个例子是。
|
|