ÄÏ¿ª´óѧ

ÄÏ¿ª24ÇïѧÆÚ£¨¸ßÆð±¾£º1709-2103¡¢×¨Éý±¾/¸ßÆðר£º2003-2103£©

ʱ¼ä£º2024-08-18  ×÷Õß:ÔÚÏß  À´Ô´£º»¥ÁªÍø  µã»÷£º ´Î  

±êÇ©£º Python±à³Ì»ù´¡
ÄÚÈÝÕªÒª£º
ÄÏ¿ª24ÇïѧÆÚ£¨¸ßÆð±¾£º1709-2103¡¢×¨Éý±¾/¸ßÆðר£º2003-2103£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ[±ê×¼´ð°¸] ÊÔ¾í×Ü·Ö:100 µÃ·Ö:100 Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö) 1.ÏÂÁÐÑ¡ÏîÖÐ,¿ÉÒÔÓÃÓÚÅжÏcÖб£´æµÄ×Ö·ûÊÇ·ñÊÇÓ¢ÎÄ×ÖĸµÄ±í´ïʽÊÇ( )¡£ A.c>='a' and c
×ÉѯÇëÌí¼Ó QQ£º3064302332 Î¢ÐÅ£ºwxxygzs
ÄÏ¿ª24ÇïѧÆÚ£¨¸ßÆð±¾£º1709-2103¡¢×¨Éý±¾/¸ßÆðר£º2003-2103£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ[±ê×¼´ð°¸]
ÊÔ¾í×Ü·Ö:100  µÃ·Ö:100
Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
1.ÏÂÁÐÑ¡ÏîÖÐ,¿ÉÒÔÓÃÓÚÅжÏcÖб£´æµÄ×Ö·ûÊÇ·ñÊÇÓ¢ÎÄ×ÖĸµÄ±í´ïʽÊÇ( )¡£
A.c>='a' and c<='Z'
B.c>='A' and c<='z'
C.c>='a' and c='A' and c<='Z
D.c>='a' and c='A' and c<='Z'
 
2.ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ( )¡£ m=5 while(m==0): m-=1 print(m)
A.0
B.4
C.5
D.-1
 
3.ÃæÏò¶ÔÏó·½·¨µÄ»ù±¾¹ÛµãÊÇÒ»ÇÐϵͳ¶¼ÊÇÓÉ( )¹¹³É¡£
A.Àà
B.¶ÔÏó
C.º¯Êý
D.·½·¨
 
4.Èç¹ûҪȥ³ý×Ö·û´®ÖÐÍ·²¿µÄ¿Õ¸ñ,¿ÉÒÔʹÓÃ×Ö·û´®µÄ( )·½·¨¡£
A.strip
B.lstrip
C.rstrip
D.replace
 
5.³ýÁËϵͳÓöµ½´íÎó²úÉúÒì³£Íâ,ÎÒÃÇÒ²¿ÉÒÔʹÓÃ( )²úÉúÒì³£¡£
A.exception
B.error
C.raise
D.except
 
6.Òª´ÓÎļþÖа´ÐжÁÈ¡ËùÓÐÊý¾Ý,ÔòӦʹÓÃÎļþ¶ÔÏóµÄ( )·½·¨¡£
A.read
B.readall
C.readline
D.readlines
 
7.ͳ¼ÆÁбílsÖеÄֵΪ3µÄÔªËظöÊýӦʹÓÃ( )¡£
A.ls.count(3)
B.count(ls,3)
C.ls.len(3)
D.len(ls,3)
 
8.ÏÂÁÐÑ¡ÏîÖÐ,Ö´ÐÐʱ»á±¨´íµÄÓï¾äÊÇ( )¡£
A.int('23')
B.int('23+1')
C.int('23',8)
D.int('2a',16)
 
9.ÏÂÁÐÑ¡ÏîÖÐ,ÓÃÓÚ½ÓÊÕ±ê×¼ÊäÈëÊý¾Ý(¼´´Ó¼üÅÌÊäÈë)¡¢·µ»ØΪstringÀàÐÍ(×Ö·û´®)µÄº¯ÊýÊÇ( )¡£
A.eval
B.input
C.print
D.get
 
10.Ò»¸ö½Å±¾ÎļþM.pyµ¥¶ÀÖ´ÐÐʱ,Æä__name__±äÁ¿µÄֵΪ( )¡£
A.M
B.__main__
C.py
D.²»´æÔÚ
 
11.ÒÑÖªstu1ºÍstu2ÊÇStudentÀàµÄÁ½¸ö¶ÔÏó,ÔòÖ´ÐГstu1>stu2”ʱ»á×Ô¶¯Ö´ÐÐStudentÀàµÄ( )·½·¨¡£
A.__gt__
B.__ge__
C.__lt__
D.__le__
 
12.ÔÚAÀàµÄij¸ö·½·¨ÖÐ,“super£¨ * £©”µÈ¼ÛÓÚ( )¡£
A.super(A)
B.super(A,self)
C.super(self)
D.super
 
13.openº¯ÊýµÄĬÈÏÎļþ´ò¿ª·½Ê½ÊÇ( )¡£
A.w
B.w+
C.r
D.r+
 
14.ÒÑÖªa=15,ÔòÖ´ÐГa%=6”ºó,aµÄֵΪ( )¡£
A.15
B.2.5
C.3
D.2
 
15.ÒÑÖªn=31,Ôò“print('%X'%n)”Ö´ÐкóµÄÊä³ö½á¹ûΪ( )¡£
A.31
B.1F
C.1f
D.37
 
16.ÒÑÖª“a=tuple('my')+tuple('book')”,ÔòaµÄÖµÊÇ( )¡£
A.('m','y','b','o','k')
B.('m','y','b','o','o','k')
C.'mybook'
D.'mybok'
 
17.Ö´ÐГprint(0o20)”,ÔòÔÚÆÁÄ»ÉÏ»áÊä³ö( )¡£
A.20
B.0o20
C.16
D.32
 
18.¶ÔÓÚifÓï¾äÐòÁеÄÁ½ÌõÓï¾ä,Èç¹ûµÚÒ»ÌõÓï¾äÇ°ÃæÓÐ4¸ö¿Õ¸ñ¡¢µÚ¶þÌõÓï¾äÇ°ÃæÓÐ1¸öÖƱí·û,ÔòÔËÐÐʱ»á²úÉú( )Òì³£¡£
A.IndentationError
B.TabError
C.IndexError
D.SyntaxError
 
19.¹¹Ôì·½·¨µÄ·½·¨ÃûÊÇ( )¡£
A.__construct__
B.__init__
C.__begin__
D.__start__
 
20.µÝ¹éº¯ÊýÊÇÖ¸( )¡£
A.ÔÚÒ»¸öº¯ÊýÄÚ²¿Í¨¹ýµ÷ÓÃ×Ô¼ºÍê³ÉÎÊÌâµÄÇó½â
B.ÔÚÒ»¸öº¯ÊýÄÚ²¿Í¨¹ý²»¶Ïµ÷ÓÃÆäËûº¯ÊýÍê³ÉÎÊÌâµÄÇó½â
C.Ò»¸öº¯Êý²»¶Ï±»ÆäËûº¯Êýµ÷ÓÃÍê³ÉÎÊÌâµÄÇó½â
D.°Ñº¯Êý×÷Ϊ²ÎÊýµÄÒ»ÖÖº¯Êý
 
¶þ¡¢¶àÑ¡Ìâ (¹² 10 µÀÊÔÌâ,¹² 20 ·Ö)
21.ÏÂÁÐÑ¡ÏîÖÐ,°´ÕÕ´Ó×óÖÁÓÒµÄ˳Ðò½øÐÐ×Ö·û´®¼ìË÷µÄ·½·¨°üÀ¨( )¡£
A.find
B.rfind
C.index
D.rindex
 
22.ÏÂÁÐÑ¡ÏîÖÐ,²»ÄÜ´´½¨×Öµä¶ÔÏóµÄÓï¾äÊÇ( )¡£
A.{'one':1, 'two':2, 'three':3}
B.dict('one':1, 'two':2, 'three':3)
C.{one=1, two=2, three=3}
D.dict(one=1, two=2, three=3)
 
23.×Ö·û´®¼ìË÷ʱ,¼ìË÷ʧ°Üʱ²»»áÒý·¢Òì³£µÄ·½·¨°üÀ¨( )¡£
A.find
B.rfind
C.index
D.rindex
 
24.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.È«¾Ö±äÁ¿¿ÉÒÔÔÚËùÓк¯ÊýÖÐʹÓÃ
B.Èç¹û²»Ê¹ÓÃglobal¹Ø¼ü×ÖÔòÔÚÒ»¸öº¯ÊýÖÐÎÞ·¨ÐÞ¸ÄÈ«¾Ö±äÁ¿µÄÖµ
C.Èç¹û²»Ê¹ÓÃglobal¹Ø¼ü×ÖÔòÔÚÒ»¸öº¯ÊýÖÐÎÞ·¨»ñÈ¡È«¾Ö±äÁ¿µÄÖµ
D.È«¾Ö±äÁ¿Ö»ÄÜÔÚÆäËùÔڵĽű¾ÎļþÖзÃÎÊ
 
25.ÏÂÁÐÑ¡ÏîÖÐÊôÓڸ߼¶³ÌÐòÉè¼ÆÓïÑÔµÄÊÇ( )¡£
A.PythonÓïÑÔ
B.»ã±àÓïÑÔ
C.»úÆ÷ÓïÑÔ
D.C++ÓïÑÔ
 
26.super·½·¨µÄµÚ¶þ¸ö²ÎÊý¿ÉÒÔÊÇ( )¡£
A.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ¶ÔÏó
B.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ×ÓÀàµÄ¶ÔÏó
C.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀà
D.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ¸¸Àà
E.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ×ÓÀà
 
27.ÏÂÁÐÑ¡ÏîÖÐ,²»ÊÇÊý×ÖÀàÐ͵ÄÑ¡Ïî°üÀ¨( )¡£
A.complex
B.float
C.list
D.string
 
28.PythonµÄÔËÐз½Ê½°üÀ¨( )¡£
A.½»»¥Ê½ÔËÐÐ
B.½Å±¾Ê½ÔËÐÐ
C.´úÂëʽÔËÐÐ
D.¼´Ê±Ê½ÔËÐÐ
 
29.ÏÂÁÐÑ¡ÏîÖÐ,ÊôÓÚ¾Ö²¿±äÁ¿µÄÊÇ( )¡£
A.º¯ÊýÖж¨ÒåµÄ±äÁ¿
B.º¯ÊýµÄÐβÎ
C.º¯ÊýÍⶨÒåµÄ±äÁ¿
D.º¯ÊýÃû
 
30.Èç¹ûÒªÅжÏÒ»¸ö¼¯ºÏÊÇ·ñÊÇÁíÒ»¸ö¼¯ºÏµÄ×Ó¼¯,¿ÉÒÔʹÓü¯ºÏÖеÄ( )·½·¨¡£
A.ischildset
B.issubset
C.issuperset
D.isparentset
 
Èý¡¢ÅжÏÌâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
31.ÒÑÖªÖ´ÐГd=dict(sno='1810100', name='ÀîÏþÃ÷', age=19)”,ÔòÖ´ÐГr=del d['age']”ºó,rµÄֵΪ19¡£
 
32.ÒÑÖªMÄ£¿éÖÐÓÐÁ½¸öº¯Êýf1ºÍf2,ÔòÔڽű¾ÎļþN.pyÖÐͨ¹ý“from M import *”±ØÈ»¿ÉÒÔ½«MÄ£¿éÖеÄf1ºÍf2µ¼Èë¡£
 
33.ͨ¹ýϱê“[]”²»½ö¿ÉÒÔ·ÃÎÊÔª×éÖеÄij¸öÔªËØ,»¹¿ÉÒÔ¶ÔÔªËؽøÐÐÐ޸ġ£
 
34.λÖòÎÊýÐÎʽµÄ²»¶¨³¤²ÎÊý»á±»·â×°³É×ֵ䴫µÝ¸øº¯Êý¡£
 
35.Ò»¸öÀàÊôÐÔÖ»ÄÜͨ¹ýÀàÃû·ÃÎÊ¡£
 
36.¶þ½øÖÆÊýתʮ½øÖÆÊýµÄ¹æÔòÊÇ“°´È¨Õ¹¿ªÇóºÍ”¡£
 
37.ʹÓÃ×Ö·û´®µÄformat·½·¨½øÐÐ×Ö·û´®¸ñʽ»¯Ê±,Ìæ»»×Ö¶ÎÔÚ×Ö·û´®ÖÐÐèÒªÓÃÒ»¶Ô´óÀ¨ºÅÀ¨ÆðÀ´¡£
 
38.ÒÑÖªs={1,20,25},Ôòͨ¹ý“s.add({2,3})”¿ÉÒÔÏòsÖÐÌí¼ÓÒ»¸öеļ¯ºÏÀàÐ͵ÄÔªËØ¡£
 
39.ÒÑÖª“str='Like'”,ÔòÖ´ÐГstr.upper£¨ * £©”ºó,str±£´æµÄÊý¾ÝΪ×Ö·û´®'LIKE'¡£
 
40.»ùÓÚÒÑÓеÄÀà´´½¨ÐµÄÀàÊÇÃæÏò¶ÔÏóÖеĶà̬ÐÔ¡£
 
41.ÒÑÖªMyModuleÄ£¿éÖÐÓÐÒ»¸öÎ޲κ¯Êýfun,ÇÒÔڽű¾ÎļþN.pyÖÐÓГimport MyModule as M”,ÔòÔÚN.pyÖÐÒªµ÷ÓÃMyModuleÄ£¿éÖеÄfunº¯ÊýӦʹÓÓM.fun£¨ * £©”¡£
 
42.×Öµä²ð·Ö³öÀ´µÄ½á¹ûÊÇ×÷Ϊ¹Ø¼ü×Ö²ÎÊý¡£
 
43.ºï×Ó²¹¶¡ÊÇÖ¸ÔÚÔËÐÐʱ¶¯Ì¬Ìæ»»ÒÑÓеĴúÂë,¶ø²»ÐèÒªÐÞ¸Äԭʼ´úÂë¡£
 
44.ÒÑÖªs1ºÍs2ÊÇÁ½¸ö¼¯ºÏ,ÔòÖ´ÐГs1.union(s2)”ºó,s1ÖеÄÔªËØÊÇÔ­À´s1ºÍs2Á½¸ö¼¯ºÏÖеÄÔªËصIJ¢¼¯¡£
 
45.²»ÄÜʹÓÃÊý×ÖË÷ÒýÐÎʽµÄϱê¿ÉÒÔ·ÃÎÊ×ÖµäÖеÄÔªËØ¡£
 
46.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ¼¯ºÏ¡£
 
47.α´úÂë±ØÐë·ûºÏPythonÓïÑÔµÄÓï·¨ÒªÇó¡£
 
48.Ö´ÐГprint('52.50%%')”,Êä³ö½á¹ûΪ“52.50%”¡£
 
49.Èç¹û×ÖµäaÖаüº¬¿É±äÀàÐ͵ÄÔªËØ,ÔòÔÚÓÃa¸øb¸³ÖµÊ±,ӦʹÓÃcopyÄ£¿éµÄdeepcopyº¯Êý,ÒÔʹµÃaºÍbÖи÷ÔªËصÄÈ¡Öµ¾ßÓÐÍêÈ«µÄ¶ÀÁ¢ÐÔ¡£
 
50.ÕýÔò±í´ïʽ“^ab[\s\S]*c$”¿ÉÒÔÓëÈÎÒ»ÒÔ“ab”¿ªÍ·¡¢ÒÔ“c”½áβµÄ×Ö·û´®Æ¥Åä¡£

³ö´¦£º°Â°ÂÅô×÷Òµ´ð°¸_ÓÅѧÍø_רҵµÄ×÷Òµ´ð°¸¸¨µ¼Íø
ÍøÖ·£ºyouxue100f.comתÔØʱÇë×¢Ã÷³ö´¦ºÍÍøÖ·
×÷Òµ´ð°¸_ÓÅѧÍø_רҵµÄÔÚÀëÏß×÷Òµ´ð°¸¸¨µ¼Íø

ÁªÏµ£ºQQ£º3064302332 µã»÷ÕâÀï¸øÎÒ·¢ÏûÏ¢£¬Ð»Ð»

¾«²ÊÍƼö
ÈÈÃŵã»÷
±¾ÀàÅÅÐÐ

×÷Òµ×ÊÁÏ×ÛºÏÐÅÏ¢·¢²¼ÍøÕ¾
ÁªÏµQQ:3064302332 ÓÅѧÍøΪÄú·þÎñ£¡µã»÷ÕâÀï¸øÎÒ·¢ÏûÏ¢£¬Ð»Ð»
ÓÅѧÍø³É¿¼×÷Òµ´ð°¸ÍøΪÄú·þÎñ£¡
QQ£º3064302332

ÓÅѧÍø100·Ö×÷Òµ´ð°¸
΢ÐÅ£ºwxxygzs
ÁªÏµ£ºQQ£º3064302332 youxue100f.comÍøΪÄú·þÎñ£¡µã»÷ÕâÀï¸øÎÒ·¢ÏûÏ¢£¬Ð»Ð»
×÷Òµ×ÊÁϸ¨µ¼Æ½Ì¨_ÓÅѧÍøµáICP±¸2021005493ºÅ ³É¿¼×÷Òµ´ð°¸ÁªÏµÓÅѧÍøÍøÕ¾µØͼ
Copyright ©2002-2018 °ÂÅô×÷Òµ´ð°¸_ÓÅѧÍø_רҵµÄ°ÂÅôÔÚÏßÀëÏß×÷Òµ´ð°¸¸¨µ¼Íø Îľü¿Æ¼¼ °æȨËùÓÐ Power by DedeCms