Listing 1 demonstrates this technique with a simple program to print the encodings of all URLs given on the command line.
清单1通过一个简单的程序说明该技术,输出命令行中给定的所有url的编码。
2
Another slightly more advanced technique involves using print statements, which can help pinpoint more elusive bugs by displaying what is actually going onto the screen.