中国大学MOOC: 如果执行以下代码,会输出什么值:from traits.api import HasTraits, Color class Circle(HasTraits): color = Color c = Circle() c.color = blue print(c.color.getRgb())
举一反三
- 如果执行以下代码,会输出什么值:from traits.api import HasTraits, Color class Circle(HasTraits): color = Color c = Circle() c.color = 'blue' print(c.color.getRgb()) A: (255,0,0,255) B: (0,255,0,255) C: (0,0,255,255) D: (255,255,255,255)
- 中国大学MOOC: 有关以下代码说法正确的有( )。<style > a{color:blue; text-decoration:none; } a:link{color:blue;} a:visited{color:green;} a:hover{color:red;} </style>
- In the color circle, a primary color and the corresponding secondary<br/>color (such as red and green, yellow and purple, blue and orange) are<br/>called ( ). A: Intermediate colors B: Three primary colors C: Compound colors D: Complementary colors
- 阅读下面的程序, 请写出程序的输出结果 。 #include<iostream> using namespace std; int main () { enum Color {Red,Green,Blue}; Color color; color=Red; cout<<color<<","; color=Green; cout<<color<<","; color=Blue; cout<<color<<","; cout<<Red+Green+Blue<<endl; return 0; }
- 有关下面代码片段的说法,那个是正确的? A{ color:blue; text-decoration:none; } A:link{ color:blue; } A:hover{ color:red; }A:visited{ color:green; }