• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
奚政
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页

2017年3月22日

hdu4027 Can you answer these queries? 线段树
摘要: A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Ea 阅读全文
posted @ 2017-03-22 08:45 奚政 阅读(131) 评论(0) 推荐(0)
 
 

2017年3月21日

python筛选特定文件的信息按照格式输出到txt
摘要: 最近搞数据库,为了把图片文件的信息导入数据库表中,我开始研究python列出图片文件,其中发现因为IE临时文件里有非常多的不需要的图片,就需要筛选掉一些文件。 最终用python输出了所有需要的图片文件的路径、文件名、时间到一个txt 阅读全文
posted @ 2017-03-21 23:09 奚政 阅读(4003) 评论(0) 推荐(0)
 
python time模块使用笔记(更新)
摘要: 添加time模块 关于时间和时间戳: 时间是指日常生活中用的,如某年某月某日 时间戳是一个时间长度,是时间关于一个初始时间(好像是1970.1.1)的秒数 localtime方法: time.localtime( timeStamp ) timeStamp是一个浮点数形式的时间戳 生成一个时间元组 阅读全文
posted @ 2017-03-21 22:37 奚政 阅读(390) 评论(0) 推荐(0)
 
使用python查询某目录下所有‘jpg’结尾的图片文件
摘要: 调用os模块,先建立一个对目标目录的walk迭代器。 然后再对迭代器进行遍历,判断每个文件是否以'jpg'结尾。 若是,则输出。 阅读全文
posted @ 2017-03-21 03:06 奚政 阅读(11827) 评论(0) 推荐(0)
 
python str使用笔记(更新)
摘要: 判断字符串是否以某个串为结尾: str.endswith(strtmp) 返回True/False 检查某字符串是否为另一字符串的子串: str.find(strtmp)方法 返回首次出现的下标位置,不存在则返回-1 in使用 strtmp in str 返回True/False 阅读全文
posted @ 2017-03-21 03:03 奚政 阅读(252) 评论(0) 推荐(0)
 
python os模块使用笔记(更新)
摘要: 添加os模块 walk方法: os.walk(path) path是string形式的目标目录 生成一个某目录下递归树形目录迭代器,方便递归访问子目录,访问目录就能够轻松访问子文件。 该迭代器是一个三元组迭代器: dirpath是目录的路径,dirnames是该目录下的子目录的列表,filename 阅读全文
posted @ 2017-03-21 02:56 奚政 阅读(187) 评论(0) 推荐(0)
 
hdu3974 Assign the task dfs序+线段树
摘要: There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole compa 阅读全文
posted @ 2017-03-21 02:19 奚政 阅读(335) 评论(0) 推荐(0)
 
hdu3746 Cyclic Nacklace KMP
摘要: CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan le 阅读全文
posted @ 2017-03-21 02:12 奚政 阅读(145) 评论(0) 推荐(0)
 
hdu3642 Get The Treasury 线段树--扫描线
摘要: Jack knows that there is a great underground treasury in a secret region. And he has a special device that can be used to detect treasury under the su 阅读全文
posted @ 2017-03-21 02:07 奚政 阅读(254) 评论(0) 推荐(0)
 
hdu3613 Best Reward manacher+贪心+前缀和
摘要: After an uphill battle, General Li won a great victory. Now the head of state decide to reward him with honor and treasures for his great exploit. One 阅读全文
posted @ 2017-03-21 02:04 奚政 阅读(682) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3