From b670e64229973d1adac2aef34e805fb338a2e12d Mon Sep 17 00:00:00 2001 From: feilong Date: Mon, 14 Nov 2022 11:26:37 +0800 Subject: [PATCH] fix bug --- .../style.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" index f782769..4cdc59d 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" @@ -24,7 +24,7 @@ color_table = [ def random_hex_colors(): - index = randint(0, len(color_table)) + index = randint(0, len(color_table)-1) return color_table[index]['value'] -- GitLab