休闲装折扣店在三八节推出面向未成年女生的2折优惠的活动。 01defget_discount(under_age,female):[br][/br] 02discount=0.2[br][/br] 03[br][/br] 04discount= 1[br][/br] 05returndiscount[br][/br] 03行的正确代码是什么
A: ifnot(under_ageandfemale):
B: ifnot(under_ageor female):
C: if(notunder_age)andfemale:
D: if(notunder_age)orfemale:
A: ifnot(under_ageandfemale):
B: ifnot(under_ageor female):
C: if(notunder_age)andfemale:
D: if(notunder_age)orfemale:
举一反三
- 休闲装折扣店在三八节推出面向未成年女生的2折优惠的活动。 01defget_discount(under_age,female): 02discount=0.2 03 04discount=0 05returndiscount 03行的正确代码是什么 A: ifnot(under_ageandfemale): B: ifnot(under_ageor female): C: if(notunder_age)andfemale: D: if(notunder_age)orfemale:
- ▪休闲装折扣店在三八节推出面向未成年女生的2折优惠的活动。 ▪01 def get_discount(under_age, female): ▪02 discount = 0.2 ▪03 ▪04 discount = 0 ▪05 return discount ▪03行的正确代码是什么?
- A、 float discount ____[br][/br]double discount ____
- She<br/>made it clear that __________<br/>would she cancel the trip. A: under<br/>certain circumstances B: in<br/>exceptional circumstances C: under<br/>no circumstances D: under<br/>normal circumstances
- 下列表达式中正确的是()。 A: struct person{<br/>int age; <br/>char<br/>name[8];<br/>char sex;<br/>}personl,person2; B: struct person{<br/>int <br/>age;<br/>char<br/>name[8]; <br/>char sex;<br/>} person<br/>personl,person2; C: struct person{<br/>int <br/>age;<br/>char<br/>name[8];<br/>char sex;<br/>};personl,person2; D: struct person{<br/>int <br/>age;<br/>chat<br/>name[8]="WangLin";<br/>char<br/>sex="M";<br/>} person1