問題タブ [pygal]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Pythonタプルにコンマが必要なのはなぜですか? Pygal でクラス Style を使用する
Pygal を使用してバーを作成し、Style クラスを使用してスタイルを設定しています。
コードがあります:
Sytle() を使用して my_style を作成します。プロパティの色はタプルです。
私の質問は、なぜcolors=('#336699',)にコンマが必要なのですか?
どうすればこれを理解できますか?
コンマを外すと、次のようにエラーが発生しました。
助けが必要です。そして、お時間をいただきありがとうございます!