什么是函数? 函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段 1.函数命名必须要以字母开头 >>> def a2_33():... pass#pass表示不做任何操作,只是占位...>>> a2_33()#函数调用函数名加括号>>> 练习:统计字母的个数 >>> def count ...
分类:
编程语言 时间:
2019-10-02 22:33:35
阅读次数:
129
A registration card number of PAT consists of 4 parts: the 1st letter represents the test level, namely, T for the top level, A for advance and B for ...
分类:
其他好文 时间:
2019-10-02 19:02:59
阅读次数:
95
import java.text.SimpleDateFormat; import java.util.Date; public class Test4 { public static void main(String[] args) { /** * Letter Date or Time Comp... ...
分类:
编程语言 时间:
2019-10-02 14:58:28
阅读次数:
104
D. Distinct Characters Queries Description You are given a string ss consisting of lowercase Latin letters and qq queries for this string. Recall that ...
分类:
其他好文 时间:
2019-10-02 14:37:51
阅读次数:
112
https://leetcode-cn.com/problems/find-smallest-letter-greater-than-target/submissions/ ...
分类:
编程语言 时间:
2019-09-23 22:12:04
阅读次数:
114
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: ...
分类:
其他好文 时间:
2019-09-22 12:49:54
阅读次数:
71
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in ...
分类:
其他好文 时间:
2019-09-19 14:21:33
阅读次数:
72
17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number ...
分类:
其他好文 时间:
2019-09-18 09:17:11
阅读次数:
85
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: backtracking的变种 ...
分类:
其他好文 时间:
2019-09-18 09:15:52
阅读次数:
108
from reportlab.pdfgen import canvas from reportlab.lib.units import inch, cm from reportlab.lib.pagesizes import letter from reportlab.platypus import... ...
分类:
其他好文 时间:
2019-09-14 22:53:27
阅读次数:
125