通配符命令简介:匹配符合相关条件的符号,匹配文件名查找。通配符类型:*:匹配任意长度的任意字符?:匹配任意单个字符[]:匹配指定范围内的任意单个字符[^]:匹配指定范围之外的任意单个字符[:space:]:空白字符[:punct:]:标点符号[:lower:]:小写字母[:upper:]:大写字母[:alpha:]:大小写字母[:digit:]:数字[:alnum:]:数字和大小写字母
分类:
其他好文 时间:
2018-02-04 20:58:23
阅读次数:
155
对于一个大于1且小于10000的整数N,我们定义一个唯一与之相关联的序列。例如,若N为13,则该序列为12345678910111213。现要求对于一个输入值N,记录这个序列中每个数字出现了多少次。 输入格式:先是一个整数以表明要输入的整数个数,之后每行给出一个大于1且小于10000的整数。 输出格 ...
分类:
其他好文 时间:
2018-02-01 14:42:52
阅读次数:
102
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2018-01-31 11:19:43
阅读次数:
119
题目: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13, R ...
分类:
其他好文 时间:
2018-01-29 11:41:39
阅读次数:
126
范例 %s 为占位符, % 号为连接符 s代表string d代表digit f 代表 float(小数)name = input("Name:")age = input("Age:")job = input("Job:")hometown = input("Honetown:")# print(" ...
分类:
其他好文 时间:
2018-01-27 11:30:26
阅读次数:
106
Your friend has n cards. You know that each card has a lowercase English letter on one side and a digit on the other. Currently, your friend has laid ...
分类:
其他好文 时间:
2018-01-27 00:37:19
阅读次数:
186
做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)import string,randompoolOfChars = string.ascii_letters + string.digit... ...
分类:
编程语言 时间:
2018-01-26 18:46:21
阅读次数:
143
难度:β 建议用时:45 min 实际用时:3 h 30 min 🔗(你看不出来这是题目链接,对吧?(手动滑稽)) 这是我目前为止独立完成的最复杂的一道题。(别喷我太水) 这样一道暴力搜索的题,怎么会花如此多时间? 因为我一直在改细节。 调试了很多。大多数时间都在调试。需要考虑的细节真的蛮多的。 ...
分类:
其他好文 时间:
2018-01-25 23:12:02
阅读次数:
215
Pandigital prime Problem 41 We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 ...
分类:
其他好文 时间:
2018-01-24 13:55:17
阅读次数:
151
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2018-01-21 00:00:55
阅读次数:
208