- 博客(5)
- 收藏
- 关注
原创 动态规划:经典数字倒三角问题
题目1 在倒三角形中找到一条从顶点到底边的路径,使得路径上所有数字的和最大。路径上的每一步只能往左下或者往右下走,只需给出结果,不必给出具体的路径。 代码: numbers = [[7], [3, 8], [8, 1, 0], [2, 7, 4, 4], [4, 5, 2, 6, 5]] def biggest_number_dpfunc(layers, numbers): best_temp_result = [] fo
2020-11-26 17:09:09
796
原创 跳棋游戏(求最大升序子序列和)
The game can be played by two or more than two players. It consists of a chessboard(棋盘)and some chessmen(棋子), and all chessmen are marked by a positive integer or “start” or “end”. The player starts from start-point and must jumps into end-point finally. I
2020-11-26 16:58:47
438
原创 小白的jieba库使用
jieba库的简易使用指南 关键函数: jieba.lcut(s,cut_all=False) jieba.lcut(s,cut_all=True) jieba.lcut_for_serch(s) jieba.add_word(s) jieba.lcut(s,cut_all=False) # 其中s为传入的字符串,cut_all=False是默认参数,表示精确分词模式,没有冗余 jieb...
2020-04-04 18:31:44
377
原创 python实用知识点1:zip()
python实用知识点1:zip() 使用方法:zip(item1, item2, item3, …) 其中item是可迭代对象,比如列表 返回:返回一个zip对象 a = zip([1, 2], [3, 4]) print(type(a)) 输出结果:<class 'zip'> 对返回的zip对象的使用: 进行并行迭代: days = ['Monday', 'Tues...
2020-03-17 09:48:51
219
原创 本科小白tensorflow-gpu2.0.0版本安装历程
总体流程 卸载现有的cuda、以及GPU驱动 到官网下载好cuda10.0以及对应的cudnn 安装tensorflow-gpu==2.0.0正式版
2020-03-17 09:28:14
493
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅