07 2021 档案
摘要:Python 学习 环境: Anaconda + VSC # 单行注释, '''code'''多行注释 1. 数据类型 字符串 字符串中,正向序号从0开始递增,逆向序号从最后一个为-1开始向前递减 索引:str[M]返回单个字符 切片:str[M:N]返回子串 集合:{ , },set() 操作符
阅读全文
摘要:代码如下,时间复杂度为O(n) int prime[maxn],num=0; int visit[maxn]; //we should initiate all above to 0 void FindPrime() { for (int i = 2; i <= maxn; i++) { if (!
阅读全文

浙公网安备 33010602011771号