Python编程PTA题解 您所在的位置:网站首页 python英文字符串大小写 Python编程PTA题解

Python编程PTA题解

2024-07-17 11:33| 来源: 网络整理| 查看: 265

Python编程PTA题解大全——索引

Description:随机输入一个字符串,把最左边的10个不重复的英文字母(不区分大小写)挑选出来。 如没有10个英文字母,显示信息“not found” Input:输入仅一行,输入字符串 Output:输出仅一行,输出最左边的10个不重复的英文字母或显示信息“not found" Sample Input:poemp134 Sample Output:not found Sample Input:This is a test example Sample Output:Thisaexmpl

n = input() ch = [] for c in n: if c not in ch and 'a'


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有