写出例子,然后同你伙伴表演角色。
Write examples.Then role play conversations with your partner.
请考虑这样一个例子,在这个例子中有一个代码,该代码携带一些客户数据并将其写出,保存到一个有固定记录的文件中,以便在旧式系统中使用。
Consider an example where you have a code that takes some customer data and writes it out to a file of fixed records for use in a legacy system.
在这个例子里,侦听器(SuggestionListener)只是在接收到SpellCheckEvent事件时,向标准输出写出拼写错误和建议列表。
In this case, the listener (SuggestionListener) simply writes any misspellings and a list of Suggestions to standard output whenever it receives a SpellCheckEvent.
I just reduced it to a smaller version of the same problem.
我刚刚把它简化为一个更小的同类问题,这就是我可以写出能解决更短字符串的例子。
应用推荐