°ÂÅô£¬¹ú¿ª£¬¹ã¿ª£¬µç´óÔÚÏߣ¬¸÷ʡƽ̨£¬Ð½®Ò»Ì廯µÈƽ̨ѧϰ£¬
QQ:3064302332 ΢ÐÅ£ºwxxygzs
ÄÏ¿ª22ÇïѧÆÚ£¨¸ßÆð±¾1709-1803¡¢È«²ã´Î1809-2103£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ
ÊÔ¾í×Ü·Ö:100 µÃ·Ö:100
Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
1.ÏÂÃæÑ¡ÏîÖÐ,ÃèÊö´íÎóµÄÊÇ( )¡£
A.Èç¹ûÒª´´½¨µÄĿ¼ÒѾ´æÔÚ£¬Ôòos.mkdirº¯Êý»á±¨´í
B.Èç¹ûÒª´´½¨µÄĿ¼ÒѾ´æÔÚ£¬Ôòos.makedirsº¯Êý²»»á±¨´í
C.Èç¹ûҪɾ³ýµÄĿ¼²»´æÔÚ£¬Ôòos.rmdirº¯Êý»á±¨´í
D.Èç¹ûҪɾ³ýµÄĿ¼ÒÑ´æÔÚµ«Ä¿Â¼²»Îª¿Õ£¬Ôòos.rmdirº¯Êý»á±¨´í
2.ÀàÖеÄÆÕͨ·½·¨ÖÁÉÙÓÐ( )¸ö²ÎÊý¡£
A.0
B.1
C.2
D.3
3.ÅжÏÒ»¸öÀàÊÇ·ñÊÇÁíÒ»¸öÀàµÄ×ÓÀà,ӦʹÓÃÄÚÖú¯Êý( )¡£
A.isinstance
B.issubclass
C.type
D.isclass
4.Àà·½·¨ÊÇָʹÓÃ( )ÐÞÊεķ½·¨¡£
A.@classmethod
B.@class
C.@staticmethod
D.@static
5.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊö´íÎóµÄÑ¡ÏîÊÇ( )¡£
A.ÁбíÖеÄÔªËØÀàÐͱØÐëÏàͬ
B.ÁбíÖеÄÔªËØÖ®¼äÓöººÅ·Ö¸ô
C.ÁбíÖеÄÔªËØ¿ÉÒÔÊÇÁбíÀàÐÍ
D.ÁбíÖпÉÒÔ°üº¬Êý×ÖÀàÐ͵ÄÔªËØ
6.ÓëÕýÔò±í´ïʽ“ab(de|ef)?c”²»Æ¥ÅäµÄ×Ö·û´®ÊÇ( )¡£
A.abc
B.abdec
C.abefc
D.abdeefc
7.ϵͳģ¿éµÄÃû×ÖÊÇ( )¡£
A.sys
B.system
C.os
D.windows
8.Äڲ㺯ÊýʹÓÃÍâ²ãº¯ÊýÖж¨ÒåµÄ±äÁ¿,ӦʹÓÃ( )¹Ø¼ü×Ö¡£
A.local
B.nonlocal
C.global
D.nonglobal
9.ÒÑÖªstuÊÇStudentÀà¶ÔÏó,ÔòÖ´ÐГprint(stu)”ʱ»á×Ô¶¯Ö´ÐÐStudentÀàµÄ( )·½·¨¡£
A.__init__
B.__str__
C.__format__
D.__print__
10.Èç¹ûÒÑ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)
11.Python³ÌÐòÔÚÖ´ÐÐÒ»´ÎÖ®ºó»á×Ô¶¯Éú³ÉÀ©Õ¹ÃûΪ( )µÄ×Ö½ÚÂëÎļþ,ÒÔÌá¸ßÔËÐÐЧÂÊ¡£
A..py
B..pyc
C..pyb
D..pyf
12.ÏÂÁÐÑ¡ÏîÖÐ,¿ÉÒÔÓÃÓÚÅжÏ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'
13.Ö´ÐГprint(0x20)”,ÔòÔÚÆÁÄ»ÉÏ»áÊä³ö( )¡£
A.20
B.0x20
C.16
D.32
14.ÒÑÖª“t=tuple(range(0,10))”,Ôòprint(t[-1:3:-2])µÄ½á¹ûÊÇ( )¡£
A.[9,7,5]
B.(9,7,5)
C.[9,7,5,3]
D.(9,7,5,3)
15.ÒÑ֪ͨ¹ý“stu=Student('1810101','ÀîÏþÃ÷')”¿ÉÒÔ´´½¨Ò»¸öStudentÀà¶ÔÏ󲢸³¸østu,Ôò´´½¨¸Ã¶ÔÏóʱËùÖ´ÐеĹ¹Ôì·½·¨µÄÐβθöÊý(²»¿¼ÂDz»¶¨³¤²ÎÊýµÄÇé¿ö)Ϊ( )¡£
A.1
B.2
C.3
D.4
16.ʹÓü¯ºÏµÄupdate·½·¨,ÒªÇó´«ÈëµÄʵ²Î±ØÐëÊÇ( )¡£
A.Ôª×é
B.Áбí
C.¿É¹þÏ£¶ÔÏó
D.¿Éµü´ú¶ÔÏó
17.µ÷Óú¯Êýʱº¯ÊýÃûºóÃæµÄÒ»¶ÔСÀ¨ºÅÖиø³öµÄ²ÎÊý³ÆΪ( )¡£
A.ʵ²Î
B.ÐβÎ
C.ÀàÐͲÎÊý
D.Ãû×Ö²ÎÊý
18.ÎÞÂÛtry×Ó¾äÖ´ÐÐʱÊÇ·ñ·¢ÉúÒì³£,¶¼»áÖ´ÐеÄ×Ó¾äÊÇ( )¡£
A.else
B.finally
C.except
D.²»´æÔÚ
19.ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ( )¡£ m=5 while(m==0): m-=1 print(m)
A.0
B.4
C.5
D.-1
20.ÔÚ»æÖÆÁ÷³Ìͼʱ,Ö»ÓÐ( )ºóÃæÔÊÐíÓжà¸ö·ÖÖ§¡£
A.Ô²½Ç¾ØÐÎ
B.Ô²
C.¾ØÐοò
D.ÁâÐοò
¶þ¡¢¶àÑ¡Ìâ (¹² 10 µÀÊÔÌâ,¹² 20 ·Ö)
21.ÔÚÁбíµÄ×îºóÌí¼ÓÒ»¸öÐÂÔªËØ,¿ÉÒÔʹÓõÄÁÐ±í·½·¨°üÀ¨( )¡£
A.insert
B.append
C.add
D.push
22.ÒÑÖªs1ºÍs2ÊÇÁ½¸ö¼¯ºÏ,Ôò·µ»Ø½á¹û±ØȻΪTrueµÄÑ¡Ïî°üÀ¨( )¡£
A.s1.symmetric_difference(s2).issubset(s1)
B.s1.symmetric_difference(s2).issuperset(s1)
C.s1.intersection(s2).issubset(s1)
D.s1.intersection(s2).issubset(s2)
23.ÏÂÁÐÑ¡ÏîÖÐ,¼ÆËã½á¹ûΪTrueµÄ±í´ïʽ°üÀ¨( )¡£
A.15>=8
B.not 15<8
C.15>=8 or 15<8
D.15>=8 and 15<8
24.ʹÓü¯ºÏµÄupdate·½·¨,´«ÈëµÄʵ²Î¿ÉÒÔÊÇ( )¡£
A.Êý×Ö
B.Ôª×é
C.Áбí
D.×Ö·û´®
25.ÏÂÁÐÑ¡ÏîÖÐ,²»ÊÇÊý×ÖÀàÐ͵ÄÑ¡Ïî°üÀ¨( )¡£
A.complex
B.float
C.list
D.string
26.ÒÑÖªÔÚAÀàÖж¨ÒåÁË·½·¨fa,ÔÚBÀàÖж¨ÒåÁËÊôÐÔb,ÔÚCÀàÖж¨ÒåÁË·½·¨fcºÍÊôÐÔc,AÊÇBµÄ¸¸Àà,BÊÇCµÄ¸¸Àà,ÔòBÀàÖеijÉÔ±°üÀ¨( )¡£
A.fa
B.b
C.fc
D.c
27.×Ö·û´®¼ìË÷ʱ,¼ìË÷ʧ°Üʱ²»»áÒý·¢Òì³£µÄ·½·¨°üÀ¨( )¡£
A.find
B.rfind
C.index
D.rindex
28.ÏÂÁйØÓÚ±Õ°üµÄÃèÊöÖÐ,ÕýÈ·µÄÊÇ( )¡£
A.Íâ²ãº¯ÊýµÄij¸ö¾Ö²¿±äÁ¿Èç¹ûÔÚÄڲ㺯ÊýÖÐʹÓã¬ÔòÍâ²ãº¯ÊýÖ´ÐнáÊøʱ¸Ã¾Ö²¿±äÁ¿²¢²»»á±»ÊÍ·Å
B.Íâ²ãº¯ÊýµÄ·µ»ØÖµÊÇÄڲ㺯ÊýµÄÃû×Ö
C.±Õ°ü»á½«Äڲ㺯ÊýµÄ´úÂëºÍ×ÔÓɱäÁ¿´ò°üÔÚÒ»Æð
D.Ò»¸öº¯Êýͨ¹ý¶à´Îµ÷ÓÿÉÐγɶà¸ö±Õ°ü£¬ÇÒÿ¸ö±Õ°ü¿ÉÒÔÓв»Í¬µÄÉÏÏÂÎÄ»·¾³
29.ÏÂÁÐÑ¡ÏîÖÐ,°´ÕÕ´Ó×óÖÁÓÒµÄ˳Ðò½øÐÐ×Ö·û´®¼ìË÷µÄ·½·¨°üÀ¨( )¡£
A.find
B.rfind
C.index
D.rindex
30.ÏÂÁÐÑ¡ÏîÖÐ,·µ»Ø½á¹ûΪTrueµÄ±í´ïʽΪ( )¡£
A.15 in {'name':'Zhangsan','age':15}
B.'age' in {'name':'Zhangsan','age':15}
C.'Zhangsan' in {'name':'Zhangsan','age':15}
D.'name' in {'name':'Zhangsan','age':15}
Èý¡¢ÅжÏÌâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
31.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ¼¯ºÏ¡£
32.ÒÑÖªMÄ£¿éÖÐÓÐÁ½¸öº¯Êýf1ºÍf2,ÔòÔڽű¾ÎļþN.pyÖÐͨ¹ý“from M import *”±ØÈ»¿ÉÒÔ½«MÄ£¿éÖеÄf1ºÍf2µ¼Èë¡£
33.lambdaº¯Êý¿ÉÒÔ×÷Ϊʵ²Î´«¸ø¸ß½×º¯ÊýµÄÐβΡ£
34.Äڲ㺯ÊýҪʹÓÃÍâ²ãº¯Êý¶¨ÒåµÄ±äÁ¿,±ØÐëʹÓÃnonlocal¹Ø¼ü×Ö¡£
35.PythonÖеĶà̬ÊǽèÖúѼ×ÓÀàÐÍʵÏֵġ£
36.Èç¹ûÒ»¸öÊôÐÔÖ»ÓÐÓÃÓÚ»ñÈ¡ÊôÐÔÖµµÄgetter·½·¨,¶øûÓÐÓÃÓÚÉèÖÃÊôÐÔÖµµÄsetter·½·¨,Ôò¸ÃÊôÐÔÊÇÒ»¸öÖ»¶ÁÊôÐÔ¡£
37.²»ÄÜʹÓÃÊý×ÖË÷ÒýÐÎʽµÄϱê¿ÉÒÔ·ÃÎÊ×ÖµäÖеÄÔªËØ¡£
38.¹¹Ôì·½·¨¿ÉÒÔûÓÐÐβΡ£
39.ÒÑÖªBÊÇAµÄ¸¸Àà,aÊÇAÀàµÄ¶ÔÏó,bÊÇBÀàµÄ¶ÔÏó,Ôò“isinstance(a,type(b))”·µ»Ø½á¹ûΪTrue¡£
40.re.match(r'py$','puppy')·µ»ØµÄÊÇÒ»¸öMatch¶ÔÏó¡£
41.ÒÑÖª“t=(True)”,ÔòtÊÇÒ»¸öÔª×é¡£
42.Íâ²ãº¯ÊýÖж¨ÒåµÄ¾Ö²¿±äÁ¿±»Äڲ㺯ÊýʹÓÃ,Ôòÿµ÷ÓÃÒ»´ÎÍâ²ãº¯ÊýÔò»áÐγÉÒ»¸ö±Õ°ü¡£
43.ÒÑÖªÖ´ÐГd=dict(sno='1810100', name='ÀîÏþÃ÷', age=19)”,ÔòÖ´ÐГr=d.pop('age')”ºó,rµÄֵΪ19¡£
44.¶ÔÓڿɱäÀàÐ͵ĶÔÏóa,ͨ¹ý“a=b”¿ÉÒÔÐÞ¸ÄaµÄÖµ,µ«¸³ÖµÇ°ºÍ¸³ÖµºóaËù¶ÔÓ¦µÄÄÚ´æµØÖ·¿ÉÄܻᷢÉú±ä»¯¡£
45.ÒÑÖªs1ºÍs2ÊÇÁ½¸ö¼¯ºÏ,ÔòÖ´ÐГs1.union(s2)”ºó,s1ÖеÄÔªËØÊÇÔÀ´s1ºÍs2Á½¸ö¼¯ºÏÖеÄÔªËصIJ¢¼¯¡£
46.ʹÓÃ×Ö·û´®µÄformat·½·¨½øÐÐ×Ö·û´®¸ñʽ»¯Ê±,Ìæ»»×Ö¶ÎÔÚ×Ö·û´®ÖÐÐèÒªÓÃÒ»¶Ô´óÀ¨ºÅÀ¨ÆðÀ´¡£
47.µ÷ÊÔÊÇΪÁ˽â¾öÓï·¨´íÎó¡£
48.PythonÊÇÒ»ÖÖÈõÀàÐ͵ÄÓïÑÔ,±äÁ¿µÄÀàÐÍÓÉÆäÖµµÄÀàÐ;ö¶¨¡£
49.1.25e3±íʾ¸¡µãÊý1250.0µÄ¿Æѧ¼ÇÊý·¨±íʾ·½Ê½¡£
50.Èç¹ûÔÚÒ»¸öº¯ÊýÖÐûÓÐÏÔʾµØдreturnÓï¾ä,Ôò¸Ãº¯ÊýÓÐÒ»¸öÒþʽµÄʲôÊý¾Ý¶¼²»·µ»ØµÄretrunÓï¾ä¡£