ÄÏ¿ª´óѧ

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

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

±êÇ©£º ÔÚÏß×÷Òµ Python±à³Ì»ù´¡
ÄÚÈÝÕªÒª£º
ÄÏ¿ª23ÇïѧÆÚ£¨¸ßÆð±¾£º1709-2103¡¢×¨Éý±¾¸ßÆðר£º2003-2103£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ[±ê×¼´ð°¸] ÊÔ¾í×Ü·Ö:100 µÃ·Ö:100 Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö) 1.ÒÑÖªa=15,ÔòÖ´ÐС°a%=6¡±ºó,aµÄֵΪ( )¡£ A.15 B.2.5 C.3 D.2 2.Èç¹ûÒÑAºÍB×÷Ϊ

¿É×ö×÷Òµ ¿¼ºË ÂÛÎÄ ÁªÏµÁªÏµÓÅѧÍø QQ£º3064302332 Î¢ÐÅ£ºwxxygzs

ÄÏ¿ª23ÇïѧÆÚ£¨¸ßÆð±¾£º1709-2103¡¢×¨Éý±¾¸ßÆðר£º2003-2103£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ[±ê×¼´ð°¸]
ÊÔ¾í×Ü·Ö:100  µÃ·Ö:100
Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
1.ÒÑÖªa=15,ÔòÖ´ÐГa%=6”ºó,aµÄֵΪ( )¡£
A.15
B.2.5
C.3
D.2
 
2.Èç¹ûÒÑAºÍB×÷Ϊ¸¸ÀඨÒå×ÓÀàC,Ôò¶¨ÒåCʱµÚÒ»ÐдúÂëÕýÈ·µÄд·¨ÊÇ( )¡£
A.class C:A,B
B.class C:A,C:B
C.class C(A,B)
D.class C(A),C(B)
 
3.ÒÑÖªstuÊÇStudentÀà¶ÔÏó,ÔòÖ´ÐГprint(stu)”ʱ»á×Ô¶¯Ö´ÐÐStudentÀàµÄ( )·½·¨¡£
A.__init__
B.__str__
C.__format__
D.__print__
 
4.ÎÞÂÛtry×Ó¾äÖ´ÐÐʱÊÇ·ñ·¢ÉúÒì³£,¶¼»áÖ´ÐеÄ×Ó¾äÊÇ( )¡£
A.else
B.finally
C.except
D.²»´æÔÚ
 
5.ÔÚÖ´ÐÐͬÑù´úÂëµÄÇé¿öÏÂ,ϵͳ»á¸ù¾Ý¶ÔÏóʵ¼ÊËùÊôµÄÀàÈ¥µ÷ÓÃÏàÓ¦ÀàÖеķ½·¨,Õâ¸öÌØÐÔÊÇÀàµÄ( )¡£
A.·â×°ÐÔ
B.¼Ì³ÐÐÔ
C.¶à̬ÐÔ
D.×ÔÊÊÓ¦ÐÔ
 
6.Èç¹ûreturnºóÃæÓжà¸öÊý¾Ý,ÔòÕâ¶à¸öÊý¾Ý»á·â×°³É( )·µ»Ø¡£
A.Ôª×é
B.Áбí
C.¼¯ºÏ
D.×Öµä
 
7.ÏÂÁÐÑ¡ÏîÖÐ,´íÎóµÄÃèÊöÊÇ( )¡£
A.×ÖµäÖеÄÿһ¸öÔªËØÊÇÒ»¸ö¼ü:Öµ¶Ô
B.×ÖµäÖв»Í¬ÔªËصļü²»ÄÜÏàͬ
C.×ÖµäÖв»Í¬ÔªËصÄÖµ²»ÄÜÏàͬ
D.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ×Öµä
 
8.ÒÑÖª“str='a\rb\r\nc\n'”,Ôò“str.splitlines()”µÄ·µ»Ø½á¹ûÊÇ( )¡£
A.['a','b','c']
B.['a\r','b\r\n','c\n']
C.['a\r','b\r','c']
D.['a\r','b','c']
 
9.ÔÚPython±à³Ì»·¾³Ìáʾ·ûÏÂÖ±½ÓÊäÈëPython´úÂë²¢Ö´ÐеÄÔËÐз½Ê½³ÆΪ( )¡£
A.½»»¥Ê½ÔËÐÐ
B.½Å±¾Ê½ÔËÐÐ
C.´úÂëʽÔËÐÐ
D.¼´Ê±Ê½ÔËÐÐ
 
10.ÒÑÖª“a=[1,[2,3]]”ÇÒ“b=a[:]”,ÔòÖ´ÐГa[1][0]=10”ºó,bµÄֵΪ( )¡£
A.[1,10]
B.[1,[2,3]]
C.[1,[10,3]]
D.±¨´í
 
11.ÒÑÖªf=1234.5,Ôò“print('%.2e'%f)”Ö´ÐкóµÄÊä³ö½á¹ûΪ( )¡£
A.1.2345e+03
B.1.23e+03
C.1.2e+03
D.1234.50
 
12.ÔÚAÀàµÄij¸ö·½·¨ÖÐ,“super()”µÈ¼ÛÓÚ( )¡£
A.super(A)
B.super(A,self)
C.super(self)
D.super
 
11.ËùÓк¯ÊýÖ®ÍⶨÒåµÄ±äÁ¿ÊÇ( )¡£
A.¾Ö²¿±äÁ¿
B.È«¾Ö±äÁ¿
C.¾²Ì¬±äÁ¿
D.Îļþ±äÁ¿
 
14.Èç¹ûÒª¼ÆËãÁ½¸ö¼¯ºÏµÄ½»¼¯,ӦʹÓü¯ºÏÖеÄ( )·½·¨¡£
A.intersection
B.union
C.difference
D.symmetric_difference
 
15.ÒÑÖª“str='a\rb\r\nc\n'”,Ôò“str.splitlines(True)”µÄ·µ»Ø½á¹ûÊÇ( )¡£
A.['a','b','c']
B.['a\r','b\r\n','c\n']
C.['a\r','b\r','c']
D.['a\r','b','c']
 
16.Èç¹ûÒª¼ÆËãÁ½¸ö¼¯ºÏµÄ¶Ô³Æ²î¼¯,ӦʹÓü¯ºÏÖеÄ( )·½·¨¡£
A.union
B.symmetric_difference
C.intersection
D.difference
 
17.¸ß½×º¯ÊýÊÇÖ¸( )¡£
A.ÔÚÒ»¸öº¯ÊýÄÚ²¿Í¨¹ýµ÷ÓÃ×Ô¼ºÍê³ÉÎÊÌâµÄÇó½â
B.ÔÚÒ»¸öº¯ÊýÄÚ²¿Í¨¹ý²»¶Ïµ÷ÓÃÆäËûº¯ÊýÍê³ÉÎÊÌâµÄÇó½â
C.Ò»¸öº¯Êý²»¶Ï±»ÆäËûº¯Êýµ÷ÓÃÍê³ÉÎÊÌâµÄÇó½â
D.°Ñº¯Êý×÷Ϊ²ÎÊýµÄÒ»ÖÖº¯Êý
 
18.ÒÑÖª“str='Python#C++##Python'”,Ôò“str.find('Python')”·µ»ØµÄ½á¹ûÊÇ( )¡£
A.0
B.12
C.-1
D.±¨´í
 
19.ÏÂÁÐÑ¡ÏîÖÐ,·µ»Ø½á¹ûΪTrueµÄ±í´ïʽΪ( )¡£
A.1 in {'ab':1}
B.'ab' in 'abc'
C.'ac' in 'abc'
D.'ab' in ['abc',1]
 
20.Ö´ÐГa=10*1/0”Óï¾äʱ,»á²úÉú( )Òì³£¡£
A.TypeError
B.ValueError
C.ZeroDivisionError
D.KeyError
 
¶þ¡¢¶àÑ¡Ìâ (¹² 10 µÀÊÔÌâ,¹² 20 ·Ö)
23.ÒÑÖªÓк¯Êý¶¨Òå: def StudentInfo(name,country='Öйú',age=18): print('%s,%s,%d'%(name,country,age)) ÔòÏÂÁк¯Êýµ÷ÓÃÖÐÕýÈ·µÄÊÇ( )¡£
A.StudentInfo('´óÎÀ','ÃÀ¹ú',20)
B.StudentInfo('´óÎÀ',,20)
C.StudentInfo('´óÎÀ',age=20)
D.StudentInfo(name='´óÎÀ','ÃÀ¹ú')
 
22.super·½·¨µÄµÚ¶þ¸ö²ÎÊý¿ÉÒÔÊÇ( )¡£
A.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ¶ÔÏó
B.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ×ÓÀàµÄ¶ÔÏó
C.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀà
D.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ¸¸Àà
E.µÚÒ»¸ö²ÎÊýÖ¸¶¨µÄÀàµÄ×ÓÀà
 
23.ÒÑÖª¶¨ÒåµÄStudentÀàÖÐÓÐÒ»¸öÀàÊôÐÔsno,stuÊÇStudentÀàµÄ¶ÔÏó,ÔòÏÂÁÐÑ¡ÏîÖÐÄܹ»ÕýÈ··ÃÎÊsnoÊôÐԵķ½·¨°üÀ¨( )¡£
A.Student::sno
B.stu::sno
C.Student.sno
D.stu.sno
 
24.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.ÔÚÒ»¸ö¼Ì³Ð¹ØϵÖÐÖ»ÄÜÓÐÒ»¸ö×ÓÀà
B.ÔÚÒ»¸ö¼Ì³Ð¹ØϵÖÐÖ»ÄÜÓÐÒ»¸ö¸¸Àà
C.Ò»¸öÀà¿ÉÄÜÔÚÒ»¸ö¼Ì³Ð¹ØϵÖÐÊÇ×ÓÀà¡¢¶øÔÚÁíÒ»¸ö¼Ì³Ð¹ØϵÖÐÊǸ¸Àà
D.Ò»¸öÀà¿ÉÄÜÔÚ¶à¸ö¼Ì³Ð¹ØϵÖÐÊÇ×ÓÀà
 
25.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.Îö¹¹·½·¨ÊÇÀàµÄÄÚÖ÷½·¨Ö®Ò»
B.Îö¹¹·½·¨ÔÚ¶ÔÏóÏú»Ùʱ×Ô¶¯Ö´ÐÐ
C.Îö¹¹·½·¨¿ÉÒÔÉèÖÃĬÈϲÎÊýÖµ
D.Îö¹¹·½·¨µÄ·½·¨ÃûΪ__term__
 
26.ÏÂÃæ¹ØÓÚpassµÄ˵·¨ÖÐ,ÕýÈ·µÄÊÇ( )¡£
A.pass±íʾһ¸ö¿Õ²Ù×÷£¬Ö»Æðµ½Õ¼Î»×÷ÓÃ
B.passÄܹ»Ìø³öÑ­»·Óï¾ä
C.passÖ»ÄÜÓÃÔÚÌõ¼þÓï¾äÖÐ
D.ifµÄ·ÖÖ§Óï¾äÖпÉÒÔÖ»°üÀ¨pass
 
27.ÏÂÁÐÑ¡ÏîÖÐÊôÓڸ߼¶³ÌÐòÉè¼ÆÓïÑÔµÄÊÇ( )¡£
A.PythonÓïÑÔ
B.»ã±àÓïÑÔ
C.»úÆ÷ÓïÑÔ
D.C++ÓïÑÔ
 
28.ÏÂÁÐÑ¡ÏîÖÐ,±È½Ï¶ÔÏó´óСʱ×Ô¶¯Ö´ÐеÄÄÚÖ÷½·¨°üÀ¨( )¡£
A.__str__
B.__eq__
C.__ne__
D.__nq__
 
29.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.ËùÓеü´úÆ÷¶¼Êǿɵü´ú¶ÔÏó
B.ËùÓпɵü´ú¶ÔÏó¶¼Êǵü´úÆ÷
C.ͨ¹ý“isinstance(x,Iterator)”¿ÉÒÔÅжÏxÊÇ·ñÊǵü´úÆ÷
D.Èç¹ûÒ»¸ö¿Éµü´ú¶ÔÏó¿ÉÒÔͨ¹ýnextº¯Êý²»¶Ï»ñÈ¡ÏÂÒ»¸öÔªËصÄÖµ£¬ÔòËüÊÇÒ»¸öµü´úÆ÷
 
30.ÏÂÁÐÑ¡ÏîÖÐ,Äܹ»Éú³ÉÁбí[1,3,5]µÄÓï¾ä°üÀ¨( )¡£
A.list(range(1,7,2))
B.list(range(1,5,2))
C.[x for x in range(7) if x%2!=0]
D.[2*x+1 for x in range(3)]
 
Èý¡¢ÅжÏÌâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
31.Ö´ÐÐprint('d:\\Python'),Ôò»áÔÚÆÁÄ»ÉÏÊä³ö“d:\Python”¡£
 
46.ÒÑÖª“ls=[0,1,2,3,4,5,6,7,8,9]”,Ôò“del ls[7:9]”Óë“ls[7:9]=[]”µÃµ½µÄlsÖеÄÔªËØÏàͬ¡£
 
33.Íâ²ãº¯ÊýµÄ·µ»ØÖµÊÇÄڲ㺯ÊýµÄÒýÓÃ,Ôòÿµ÷ÓÃÒ»´ÎÍâ²ãº¯ÊýÔò»áÐγÉÒ»¸ö±Õ°ü¡£
 
34.ʹÓÓimport M1; M2; M3”¿ÉÒÔÒ»´Îµ¼ÈëM1¡¢M2ºÍM3Õâ3¸öÄ£¿é¡£
 
35.Ö´ÐГprint('52.50%%')”,Êä³ö½á¹ûΪ“52.50%”¡£
 
36.ÿһ¸öÁ÷³Ìͼ¶¼±ØÐëÓГ¿ªÊ¼”ºÍ“½áÊø”,´Ó“¿ªÊ¼”³ö·¢,¾­¹ýÈκδ¦Àíºó±ØÈ»Äܵ½´ï“½áÊø”¡£
 
37.ͨ¹ý“ls.max()”¿ÉÒԵõ½ÁбílsÖÐ×î´óÔªËصÄÖµ¡£
 
38.×Öµä²ð·Ö³öÀ´µÄ½á¹ûÊÇ×÷Ϊ¹Ø¼ü×Ö²ÎÊý¡£
 
39.ÒÑÖªmÊÇÒ»¸öMatch¶ÔÏó,Ôòm.start(0)·µ»ØµÄÊǵÚ1¸ö·Ö×éµÄÆ¥Åä½á¹û×Ö·û´®ÔÚÔ­×Ö·û´®ÖеĿªÊ¼Î»Öá£
 
40.²»ÄÜʹÓÃÊý×ÖË÷ÒýÐÎʽµÄϱê¿ÉÒÔ·ÃÎÊ×ÖµäÖеÄÔªËØ¡£
 
41.re.match(r'py$','puppy')·µ»ØµÄÊÇÒ»¸öMatch¶ÔÏó¡£
 
42.ÒÑÖªÓÐÓï¾ä“assert num==0”,Ôòµ±numµÄֵΪ0ʱ»áÒý·¢AssertionErrorÒì³£¡£
 
43.ͨ¹ýimportÓï¾äÒ»´ÎÖ»Äܵ¼ÈëÒ»¸öÄ£¿é¡£
 
44.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ×ֵ䡣
 
45.ͨ¹ý“max(t)”¿ÉÒԵõ½Ôª×étÖÐ×î´óÔªËصÄÖµ¡£
 
46.Èç¹ûÔÚÒ»¸öº¯ÊýÖÐûÓÐÏÔʾµØдreturnÓï¾ä,Ôò¸Ãº¯ÊýÓÐÒ»¸öÒþʽµÄʲôÊý¾Ý¶¼²»·µ»ØµÄretrunÓï¾ä¡£
 
47.re.search(r'^py','puppy\npython',re.M)·µ»ØµÄÊÇÒ»¸öMatch¶ÔÏó¡£
 
48.±í´ïʽa=b=1ÖÐÁ½¸öÔËËã·ûµÄÔËËã˳ÐòÊÇ´ÓÓÒÖÁ×ó¡£
 
48.½èÖúyield¹Ø¼ü×Ö¿ÉÒÔÀûÓú¯ÊýʵÏÖÉú³ÉÆ÷µÄ¹¦ÄÜ¡£
 
50.¶ÔÓÚ±í´ïʽx in y,ÆäÖÐy±ØÐëÊǿɵü´ú¶ÔÏó¡£

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

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

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

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

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