从零开始的Python ACM Ch.4:序列和字符串的算法
UVa272 TeX中的引号TEX Quotes - UVA 272 - Virtual Judge (vjudge.net)
在Tex中,左引号是``,右引号是’ ‘。
给定一段包含双引号的段落,你的任务是把它转换成Tex的格式。
个人题解1234567891011121314151617181920212223ArticleInput = '''"To be or not to be," quoth the bard, "thatis the question".The programming contestant replied: "I must disagree.To `C' or not to `C', that is The Question!"'''flag = FalseArticleOutput = ''start = 0for place in range(len(ArticleInpu ...