In the world of programming, this pattern is best illustrated by such constructs as switch-case and if-then-else blocks.
在程序中,通过构造诸如 switch-case和 if-then-else 之类的程序块来阐明这种模式是如何实现。
The good news is that we don't have to change our code if we switch databases, except for the places -- such as the use statement and the new statement -- where we mention Persistent::MySQL by name.
令人欣慰的是,除了通过名称来引用Persistent::MySQL 之外(例如use语句和new 语句),在切换数据库时不需要更改代码。
Then Wang Ping flashed a switch on a computer screen, and a table and some chairs rose from under the floor as if by magic.
然后王平迅速的按了一下电脑屏幕上的开关,一张桌子和几张椅子魔法般的从地下升了起来。
Then Wang Ping flashed a switch on a computer screen, and a table and some chairs rose from under the floor as if by magic.
然后王平迅速的按了一下电脑屏幕上的开关,一张桌子和几张椅子魔法般的从地下升了起来。
应用推荐