×÷Òµ ¿¼ºË ÂÛÎÄ ´ð°¸ÁªÏµ QQ£º3064302332 ΢ÐÅ£ºwxxygzs
ÄÏ¿ª23ÇïѧÆÚ£¨½öÏÞ-¸ßÆðר1909¡¢×¨Éý±¾1909£©¡¶Python±à³Ì»ù´¡¡·ÔÚÏß×÷Òµ[±ê×¼´ð°¸]
ÊÔ¾í×Ü·Ö:100 µÃ·Ö:100
Ò»¡¢µ¥Ñ¡Ìâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
1.re.subnº¯Êý·µ»ØµÄ½á¹ûÊÇ( )¡£
A.×Ö·û´®
B.Ôª×é
C.Áбí
D.²»È·¶¨
2.ϵͳģ¿éµÄÃû×ÖÊÇ( )¡£
A.sys
B.system
C.os
D.windows
3.ÏÂÁÐÑ¡ÏîÖÐ,( )²»Êdz£Á¿¡£
A.12
B.35.7
C.'Python'
D.abc
4.( )ÊǼÆËã»úÍê³ÉµÄÒ»¸ö×î»ù±¾µÄ²Ù×÷¡£
A.³ÌÐò
B.Ö¸Áî
C.´úÂë
D.ÃüÁî
5.re.findallº¯ÊýµÄ·µ»Ø½á¹û±ØÈ»ÊÇ( )¡£
A.Áбí
B.Ôª×é
C.×Ö·û´®
D.µü´úÆ÷
6.ÒÑÖª“ls=[1,3,2,5]”,ÔòÖ´ÐГls.sort(reverse=True)”ºólsµÄֵΪ( )¡£
A.[1,3,2,5]
B.[1,2,3,5]
C.[5,3,2,1]
D.[5,2,3,1]
7.“try except”Óï¾äÖÐʹÓÓexcept:”±íʾ( )¡£
A.²¶»ñËùÓÐÒì³£
B.²¶»ñδ±»Ç°Ãæexcept×Ӿ䲶»ñµÄÒì³£
C.µÈ¼ÛÓÚ“except None:”
D.´íÎóµÄд·¨
8.Èç¹ûҪȥ³ý×Ö·û´®ÖÐÍ·²¿µÄ¿Õ¸ñ,¿ÉÒÔʹÓÃ×Ö·û´®µÄ( )·½·¨¡£
A.strip
B.lstrip
C.rstrip
D.replace
9.ÒÑÖª“a=tuple('my')+tuple('book')”,ÔòaµÄÖµÊÇ( )¡£
A.('m','y','b','o','k')
B.('m','y','b','o','o','k')
C.'mybook'
D.'mybok'
10.ÔÚÍê³ÉÒ»Ïî½Ï¸´ÔÓµÄÈÎÎñʱ,ÎÒÃÇͨ³£»á½«ÈÎÎñ·Ö½â³ÉÈô¸É¸ö×ÓÈÎÎñ,ͨ¹ýÍê³ÉÕâЩ×ÓÈÎÎñÖð²½ÊµÏÖÈÎÎñµÄÕûÌåÄ¿±ê,²ÉÓÃÕâÖÖ˼ÏëµÄ³ÌÐòÉè¼Æ·½·¨³ÆΪ( )³ÌÐòÉè¼Æ·½·¨¡£
A.ÃæÏò¶ÔÏó
B.ÃæÏòÀà
C.½á¹¹»¯
D.·Ö½â»¯
11.ʹÓÃ×ÖµäÖеÄ( )·½·¨¿ÉÒÔÒ»´Î²åÈë¶à¸öÔªËØ¡£
A.add
B.update
C.push
D.insert
12.ÔÚ»æÖÆÁ÷³Ìͼʱ,Ö»ÓÐ( )ºóÃæÔÊÐíÓжà¸ö·ÖÖ§¡£
A.Ô²½Ç¾ØÐÎ
B.Ô²
C.¾ØÐοò
D.ÁâÐοò
13.ÒÑÖªÓдúÂë“for x in y:”,Ôòy±ØÈ»ÊÇÒ»¸ö( )¡£
A.¿É¹þÏ£¶ÔÏó
B.¿Éµü´ú¶ÔÏó
C.Áбí¶ÔÏó
D.¼¯ºÏ¶ÔÏó
14.Ò»¸ö½Å±¾ÎļþM.pyµ¥¶ÀÖ´ÐÐʱ,Æä__name__±äÁ¿µÄֵΪ( )¡£
A.M
B.__main__
C.py
D.²»´æÔÚ
15.ÅжÏÒ»¸ö¶ÔÏóËùÊôµÄÀàÊÇ·ñÊÇÖ¸¶¨Àà»òÖ¸¶¨ÀàµÄ×ÓÀà,ӦʹÓÃÄÚÖú¯Êý( )¡£
A.isinstance
B.issubclass
C.type
D.isclass
16.ÏÂÁÐÑ¡ÏîÖÐ,´íÎóµÄÃèÊöÊÇ( )¡£
A.×ÖµäÖеÄÿһ¸öÔªËØÊÇÒ»¸ö¼ü:Öµ¶Ô
B.×ÖµäÖв»Í¬ÔªËصļü²»ÄÜÏàͬ
C.×ÖµäÖв»Í¬ÔªËصÄÖµ²»ÄÜÏàͬ
D.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ×Öµä
17.Ê®½øÖÆÊý37תΪ¶þ½øÖÆÊý½á¹ûΪ( )¡£
A.100101B
B.101001B#100100B#100001B
18.ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ( )¡£ score=80 if score<60: print('²»¼°¸ñ') else: pass
A.²»¼°¸ñ
B.pass
C.±¨´í
D.ÎÞÊä³ö
19.ÒÑÖª“str='Python#C++##Python'”,Ôò“str.find('Python')”·µ»ØµÄ½á¹ûÊÇ( )¡£
A.0
B.12
C.-1
D.±¨´í
20.ÎÞÂÛtry×Ó¾äÖ´ÐÐʱÊÇ·ñ·¢ÉúÒì³£,¶¼»áÖ´ÐеÄ×Ó¾äÊÇ( )¡£
A.else
B.finally
C.except
D.²»´æÔÚ
¶þ¡¢¶àÑ¡Ìâ (¹² 10 µÀÊÔÌâ,¹² 20 ·Ö)
21.ÏÂÁÐÑ¡ÏîÖÐ,¿Éµü´úµÄÊý¾ÝÀàÐÍ°üÀ¨( )¡£
A.Êý×Ö
B.Ôª×é
C.Áбí
D.×Ö·û´®
22.PythonÖеÄ×Ö·û´®¿ÉÒÔдÔÚ( )ÖС£
A.Ò»¶Ô¾®ºÅÖÐ
B.Ò»¶Ô¼âÀ¨ºÅÖÐ
C.Ò»¶Ôµ¥ÒýºÅÖÐ
D.Ò»¶ÔË«ÒýºÅÖÐ
23.ÏÂÁÐÑ¡ÏîÖÐ,¼ÆËã½á¹ûΪTrueµÄ±í´ïʽ°üÀ¨( )¡£
A.15>=8
B.not 15<8
C.15>=8 or 15<8
D.15>=8 and 15<8
24.ÒÑÖªº¯Êýµ÷ÓÃFun(*a),Ôòa¿ÉÄÜÊÇ( )¡£
A.Ôª×é
B.Áбí
C.¼¯ºÏ
D.×Öµä
25.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.Ò»¸öº¯ÊýµÄº¯ÊýÌåÖпÉÒÔ°üº¬ÁíÒ»¸öº¯ÊýµÄ¶¨Òå
B.Ò»¸öº¯ÊýµÄº¯ÊýÌåÖпÉÒÔ°üº¬ÁíÒ»¸öº¯ÊýµÄµ÷ÓÃ
C.Ò»¸öº¯ÊýµÄº¯ÊýÌåÖв»¿ÉÒÔ°üº¬ÁíÒ»¸öº¯ÊýµÄ¶¨Òå
D.Ò»¸öº¯ÊýµÄº¯ÊýÌåÖв»¿ÉÒÔ°üº¬ÁíÒ»¸öº¯ÊýµÄµ÷ÓÃ
26.ÏÂÁÐÑ¡ÏîÖÐ,ÊôÓÚ¾Ö²¿±äÁ¿µÄÊÇ( )¡£
A.º¯ÊýÖж¨ÒåµÄ±äÁ¿
B.º¯ÊýµÄÐβÎ
C.º¯ÊýÍⶨÒåµÄ±äÁ¿
D.º¯ÊýÃû
27.ÏÂÁÐÑ¡ÏîÖÐ,¹ØÓÚÁбíµÄsort·½·¨ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.Èç¹ûÁбíÖеĸ÷ÔªËØ¿ÉÖ±½Ó±È½Ï´óС£¬Ôò¿ÉÒÔ²»Ö¸¶¨key²ÎÊý
B.reverse²ÎÊý¾ö¶¨Á˽«ÁбíÖеÄÔªËØ°´ÉýÐò»¹ÊǽµÐòÅÅÁÐ
C.key²ÎÊý½ÓÊÕÒ»¸öº¯Êý£¬Í¨¹ý¸Ãº¯Êý»ñÈ¡ÓÃÓÚÅÅÐòʱ±È½Ï´óСµÄÊý¾Ý
D.reverse²ÎÊýĬÈÏֵΪFalse£¬±íʾ½«ÁбíÖеÄÔªËØ°´½µÐòÅÅÁÐ
28.Èç¹ûÒª±éÀú×ÖµädÖеÄÿһ¸öÔªËصļüºÍÖµ,Ôò¿ÉÒÔʹÓõÄforÑ»·°üÀ¨( )¡£
A.for x in d:
B.for x in d.keys():
C.for x in d.values():
D.for x,y in d.items():
29.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.Èç¹ûÒ»¸öÀàÊôÐÔÃûÊÇÒÔÁ½¸öÏ»®Ïß¿ªÍ·£¬Ôò¸ÃÀàÊôÐÔÊÇ˽ÓÐÊôÐÔ
B.ÀàÖеÄ˽ÓÐÊôÐÔÖ»ÄÜÔÚÀàÄÚ·ÃÎÊ
C.ÀàÖеÄ˽ÓÐÊôÐÔ¿ÉÒÔÔÚÀàÍâ·ÃÎÊ£¬µ«²»ÄÜÖ±½ÓÓÃ˽ÓÐÊôÐÔÃû
D.ÀàÖеķ½·¨²»¿ÉÒÔÓÐĬÈϲÎÊýÖµ
30.ÏÂÁÐÑ¡ÏîÖÐ,ÃèÊöÕýÈ·µÄÊÇ( )¡£
A.¹¹Ôì·½·¨ÊÇÀàµÄÄÚÖ÷½·¨Ö®Ò»
B.¹¹Ôì·½·¨ÔÚ¶¨ÒåÀàʱ×Ô¶¯Ö´ÐÐ
C.¹¹Ôì·½·¨ÔÚ´´½¨¶ÔÏóʱ×Ô¶¯Ö´ÐÐ
D.¹¹Ôì·½·¨¿ÉÒÔÉèÖÃĬÈϲÎÊýÖµ
Èý¡¢ÅжÏÌâ (¹² 20 µÀÊÔÌâ,¹² 40 ·Ö)
31.±í´ïʽa=b=1ÖÐÁ½¸öÔËËã·ûµÄÔËËã˳ÐòÊÇ´ÓÓÒÖÁ×ó¡£
32.PythonÊÇÒ»ÖÖÈõÀàÐ͵ÄÓïÑÔ,±äÁ¿µÄÀàÐÍÓÉÆäÖµµÄÀàÐ;ö¶¨¡£
33.ͨ¹ý“{}”¿ÉÒÔ´´½¨Ò»¸ö¿Õ×ֵ䡣
34.ÕýÔò±í´ïʽ“\Aabc”ÓëÕýÔò±í´ïʽ“^abc”µÄ¹¦ÄÜÏàͬ,¶¼ÓÃÓÚÆ¥ÅäÒÔabc¿ªÍ·µÄ×Ö·û´®¡£
35.½âÊÍÊǽ«Ô´´úÂëÈ«²¿·Òë³É»úÆ÷Ö¸Áî,ÔÙ¼ÓÉÏһЩÃèÊöÐÅÏ¢,Éú³É¿ÉÖ´ÐÐÎļþ¡£
36.listº¯Êý·µ»ØµÄ½á¹û±ØÈ»ÊÇÒ»¸öÁÐ±í¡£
37.PythonÓïÑÔ»·¾³µÄÌáʾ·ûÊÇ>>>¡£
38.BooleanÀàÐÍÊÇÕûÐ͵Ä×ÓÀàÐÍ,ÔÚ×÷ΪÊý×Ö²ÎÓëÔËËãʱ,False×Ô¶¯×ªÎª1,True×Ô¶¯×ªÎª0¡£
39.¶ÔÓÚûÓÐĬÈϲÎÊýÖµµÄÐβÎ,ÔÚº¯Êýµ÷ÓÃʱ±ØÐëΪÆäÖ¸¶¨Êµ²Î¡£
40.ͨ¹ýimportÓï¾äÒ»´ÎÖ»Äܵ¼ÈëÒ»¸öÄ£¿é¡£
41.±È½ÏÔËËãºÍÂß¼ÔËËã·µ»ØµÄ¼ÆËã½á¹ûÒ»¶¨ÊDz¼¶ûÖµ¡£
42.ÒÑÖªt=(5,10,15),Ôòlist(range(len(t)))µÄÊä³ö½á¹ûÊÇ[1, 2, 3]¡£
43.α´úÂë±ØÐë·ûºÏPythonÓïÑÔµÄÓï·¨ÒªÇó¡£
44.¶þ½øÖÆÊýתʮ½øÖÆÊýµÄ¹æÔòÊÇ“°´È¨Õ¹¿ªÇóºÍ”¡£
45.ÒÑÖªs1ºÍs2ÊÇÁ½¸ö¼¯ºÏ,Ôò“s1.issubset(s2)”Óë“s2.issuperset(s1)”·µ»Ø½á¹û±ØÈ»Ïàͬ¡£
46.ÒÑÖªAÀàÖж¨ÒåÁË·½·¨fa1ºÍfa2,BÀàÖж¨ÒåÁË·½·¨fb,AÊÇBµÄ×ÓÀà,ÔòBÀàÖаüº¬ÁË3¸ö·½·¨¡£
47.ÒÑÖªd1ºÍd2ÊÇÁ½¸ö×Öµä¶ÔÏó,ÔòÖ±½ÓÖ´ÐГdMerge=dict(d1,**d2)”ÓëÏÈÖ´ÐГdMerge=d1.copy()”¡¢ÔÙÖ´ÐГdMerge.update(d2)”µÄЧ¹ûÍêÈ«Ïàͬ¡£
48.×°ÊÎÆ÷µÄ×÷ÓÃÊÇÔÚ²»ÐÞ¸ÄÒÑÓк¯ÊýÇé¿öÏÂÏòÒÑÓк¯Êý×¢Èë´úÂë¡£
49.MatplotlibÊÇÒ»¿îPython±à³Ì»·¾³ÏÂÃâ·ÑʹÓõĻæͼ¹¤¾ß°ü,Æ乤×÷·½Ê½ºÍ»æͼÃüÁºõºÍMATLABÀàËÆ¡£
50.lenº¯Êý¿É»ñÈ¡Ò»¸öÁбí¶ÔÏóÖеÄÔªËØÊýÁ¿¡£