首页 > TAG信息列表 > CHAR1

五一-----五五训练总结

1.[Gym-102770A] 题意:输出两个日期作为左右端点,从左边的天数开始,一直到右边的天数结束,问从该区间里符合条件的天数(条件为日期中含有“202”这个子串的),要注意闰年。 这题我们认为就是一个体力活。。。先把第一天和最后一天拿出来单独讨论,然后把中间的用一个for循环做出来。但这样

python-docx的安装和使用

python-docx的安装和使用 1. 安装python-docx python install python-docx 返回如下界面表示安装成功 2. 基本功能使用 导包:from docx import Document tmp文件可以用excel打开,打开后选择ASC码或者utf-8 # 创建文档对象 document = Document(r'C:\Users\WM\Desktop\s

CH579-BLE

  Peripheral   \EVT\EXAM\BLE\Peripheral\Profile\include\gattprofile.h 1 gattprofile.h //重要 因为只读 需要重新生成一次 2 3 #define SIMPLEPROFILE_CHAR1_LEN 10 4 #define SIMPLEPROFILE_CHAR2_LEN 10 5 #define SIMPLEPROFILE_CHA

leetcode1405

第一种方案,使用堆: 1 from heapq import heappush, heappop 2 class Solution: 3 def longestDiverseString(self, a: int, b: int, c: int) -> str: 4 max_heap = [] 5 if a != 0: 6 heappush(max_heap, (-a, 'a')) 7

linux命令汇总

tr命令,有2种方式 方式一 tr char1 char2,可以将char1字符替换为char2字符:  cat /etc/issue | tr 'a-z' 'A-Z' 方式二 tr -d char,将输入过来的文本中含char的删除:  cat /etc/issue | tr -d 'abc' tee命令,就是将管道输送过来的内容保留一份到文件中,另外一份输出到标准输出或继续输