清单3展示如何在柱形图中使用缩写的月份名称。
Listing 3 shows how to use abbreviated month names with a Columns plot.
当将输入的字符串解析为数字时,我们使用的是哈希表(hash) % idx_for_mon,它保持了每个月份(1. .12)给定缩写的数字索引。
When parsing the input string into its numerical constituents, we use the hash % idx_for_mon, which holds the numerical index of each month (1.. 12) given its acronym.
在上面的例子中,我们使用了一个定制的日期格式,以三个字母的缩写的形式表示月份。
In the example above, we use a custom date format, displaying months using 3-letter acronyms.
在上面的例子中,我们使用了一个定制的日期格式,以三个字母的缩写的形式表示月份。
In the example above, we use a custom date format, displaying months using 3-letter acronyms.
应用推荐