赞
踩
请输出News中每个字符出现的次数。
# 第1题 T:2次 h:18次 e:47次 :81次 U:5次 N:3次 S:4次 c:18次 u:14次 r:19次 i:28次 t:32次 y:8次 C:4次 o:29次 n:29次 l:16次 (:1次 ):1次 d:17次 a:28次 p:6次 R:3次 s:30次 2:2次 6:1次 3:1次 f:4次 ":6次 m:6次 g:3次 G:2次 A:3次 b:6次 k:1次 .:4次 I:2次 ,:3次 v:4次 1:3次 5:1次 w:4次 E:1次
将News中的每个单词分隔出来(包括标点符号,以空格为界)到News_split中并输出。
['The', 'UN', 'Security', 'Council', '(UNSC)', 'on', 'Sunday', 'adopted', 'Resolution', '2623', 'that', 'calls', 'for', 'an', '"emergency', 'special', 'session"', 'of', 'the', 'UN', 'General', 'Assembly', 'on', 'the', 'Ukraine', 'crisis.', 'It', 'is', 'the', 'first', 'such', 'a', 'resolution', 'that', 'the', 'council', 'has', 'adopted', 'in', 'four', 'decades,', 'according', 'to', 'the', 'Security', 'Council', 'Report.', 'The', 'vote', 'by', 'the', '15', 'member', 'council', 'was', 'procedural,', 'and', 'the', 'resolution', 'convening', 'the', 'General', 'Assembly', 'session', 'was', 'adopted', 'with', '11', '"yes"', 'votes.', 'Russia', 'voted', '"no"', 'while', 'the', 'United', 'Arab', 'Emirates,', 'India', 'and', 'China', 'abstained.']
记录News所有的标点符号到列表punc中。
['(', ')', '"', '"', '.', ',', '.', ',', '"', '"', '.', '"', '"', ',', '.']
根据punc,将News_split中所有元素两头的标点符号去掉,并输出。
['The', 'UN', 'Security', 'Council', 'UNSC', 'on', 'Sunday', 'adopted', 'Resolution', '2623', 'that', 'calls', 'for', 'an', 'emergency', 'special', 'session', 'of', 'the', 'UN', 'General', 'Assembly', 'on', 'the', 'Ukraine', 'crisis', 'It', 'is', 'the', 'first', 'such', 'a', 'resolution', 'that', 'the', 'council', 'has', 'adopted', 'in', 'four', 'decades', 'according', 'to', 'the', 'Security', 'Council', 'Report', 'The', 'vote', 'by', 'the', '15', 'member', 'council', 'was', 'procedural', 'and', 'the', 'resolution', 'convening', 'the', 'General', 'Assembly', 'session', 'was', 'adopted', 'with', '11', 'yes', 'votes', 'Russia', 'voted', 'no', 'while', 'the', 'United', 'Arab', 'Emirates', 'India', 'and', 'China', 'abstained']
根据以下规则把News_split中所有元素中所有数字替换为大写英文字母:“1234567890”<=>“ABCDEFGHIJ”,并输出。
['The', 'UN', 'Security', 'Council', 'UNSC', 'on', 'Sunday', 'adopted', 'Resolution', 'BFBC', 'that', 'calls', 'for', 'an', 'emergency', 'special', 'session', 'of', 'the', 'UN', 'General', 'Assembly', 'on', 'the', 'Ukraine', 'crisis', 'It', 'is', 'the', 'first', 'such', 'a', 'resolution', 'that', 'the', 'council', 'has', 'adopted', 'in', 'four', 'decades', 'according', 'to', 'the', 'Security', 'Council', 'Report', 'The', 'vote', 'by', 'the', 'AE', 'member', 'council', 'was', 'procedural', 'and', 'the', 'resolution', 'convening', 'the', 'General', 'Assembly', 'session', 'was', 'adopted', 'with', 'AA', 'yes', 'votes', 'Russia', 'voted', 'no', 'while', 'the', 'United', 'Arab', 'Emirates', 'India', 'and', 'China', 'abstained']
# '2623'转成'BFBC', '15'转成'AE', '11'转成'AA'
大写转小写,小写转大写。
['tHE', 'un', 'sECURITY', 'cOUNCIL', 'unsc', 'ON', 'sUNDAY', 'ADOPTED', 'rESOLUTION', 'bfbc', 'THAT', 'CALLS', 'FOR', 'AN', 'EMERGENCY', 'SPECIAL', 'SESSION', 'OF', 'THE', 'un', 'gENERAL', 'aSSEMBLY', 'ON', 'THE', 'uKRAINE', 'CRISIS', 'iT', 'IS', 'THE', 'FIRST', 'SUCH', 'A', 'RESOLUTION', 'THAT', 'THE', 'COUNCIL', 'HAS', 'ADOPTED', 'IN', 'FOUR', 'DECADES', 'ACCORDING', 'TO', 'THE', 'sECURITY', 'cOUNCIL', 'rEPORT', 'tHE', 'VOTE', 'BY', 'THE', 'ae', 'MEMBER', 'COUNCIL', 'WAS', 'PROCEDURAL', 'AND', 'THE', 'RESOLUTION', 'CONVENING', 'THE', 'gENERAL', 'aSSEMBLY', 'SESSION', 'WAS', 'ADOPTED', 'WITH', 'aa', 'YES', 'VOTES', 'rUSSIA', 'VOTED', 'NO', 'WHILE', 'THE', 'uNITED', 'aRAB', 'eMIRATES', 'iNDIA', 'AND', 'cHINA', 'ABSTAINED']
筛选出所有小写字母
tunscunscsrbfbcungauiscrtaegaaaruaeic
分割,填充,补齐
['qqqqqqqqqqqt', 'qqqqqqqqqnsc', 'qqqnscsrbfbc', 'qqqqqqqqqnga', 'iscrtaegaaar', 'qqqqqqqqaeic']
换表
['g', 'wla', 'wlalbiba', 'wr', 'flager', 'efa']
筛选,换表,得到flag。
Flag{noon}fterlal_Easy_afternoon}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。