首先读取一个迷宫文件maze.in (第一行是文件的行列 下面是文件内容:1表示墙 0表示此路可走) 如何读取? 迷宫算法解读 左边是读取的文件,右边是输出结果: 左边是读取的文件,右边是输出结果: ...
分类:
编程语言 时间:
2018-07-31 22:00:08
阅读次数:
196
The Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. Blew Throw the Trees Trees are Shaking, Leaves are Falling. Lovers Walk passing ...
分类:
其他好文 时间:
2018-07-24 19:27:04
阅读次数:
164
你现在是一家游戏公司的开发人员,现在需要你开发一款叫做<人狗大战>的游戏,你就思考呀,人狗作战,那至少需要2个角色,一个是人, 一个是狗,且人和狗都有不同的技能,比如人拿棍打狗, 狗可以咬人,怎么描述这种不同的角色和他们的功能呢? 你搜罗了自己掌握的所有技能,写出了下面的代码来描述这两个角色 def ...
分类:
其他好文 时间:
2018-07-23 18:02:37
阅读次数:
142
链接:https://www.nowcoder.com/acm/contest/140/A 题目描述: White Cloud is exercising in the playground.White Cloud can walk 1 meters or run k meters per seco ...
分类:
其他好文 时间:
2018-07-22 11:34:48
阅读次数:
156
题目描述 PDF 输入输出格式 输入格式: 输出格式: 输入输出样例 输入样例#1: 5 6 1 3 2 1 4 2 3 4 3 1 5 12 4 2 34 5 2 24 7 8 1 3 1 1 4 1 3 7 1 7 4 1 7 5 1 6 7 1 5 2 1 6 2 1 0 输出样例#1: 2 ...
分类:
其他好文 时间:
2018-07-22 00:10:13
阅读次数:
229
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-06-11 09:35:49 # @Author : Yaheng Wang (m13262578991@163.com) # @Link : http://www.wy2160... ...
分类:
编程语言 时间:
2018-07-18 21:50:18
阅读次数:
511
1.列举当前目录以及所有子目录下的文件,并打印出绝对路径#!/usr/bin/python# coding=utf8import osimport sys if len(sys.argv) < 2: filepath="."else: filepath=sys.argv[1]for root,dirs,files in os.walk(
分类:
编程语言 时间:
2018-07-18 21:43:13
阅读次数:
166
在指定路径下,搜索Excel文件中包含的指定内容,首先需要遍历指定路径,得到该路径下所有Excel文件的绝对/相对路径;然后读取Excel中内容,将文件中的每个单元格的值与要搜索的内容进行判断(正则比较,等值比较)。因此,实现该功能需要完成两部分内容,路径遍历和Excel文件内容读取。 使用os模块 ...
分类:
编程语言 时间:
2018-07-18 21:39:14
阅读次数:
477
1、snmpwalk -c public -v 1 -m ALL 10.0.1.52 .1.3.6.1.2.1.25.1 得到取得windows端的系统进程用户数等 2、snmpwalk -c public -v 1 -m ALL 10.0.1.52 .1.3.6.1.2.1.25.2.2 取得系统 ...
分类:
其他好文 时间:
2018-07-17 20:42:17
阅读次数:
189
In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal (that is, it h ...
分类:
其他好文 时间:
2018-07-16 21:13:09
阅读次数:
195