- 博客(5)
- 收藏
- 关注
原创 jupyter notebook配置不同python解释器的方法
【代码】jupyter notebook配置不同python解释器的方法。
2023-10-09 09:15:08
2560
1
原创 anaconda 下创建环境并安装pytorch更早版本的记录
第一步,打开终端,执行如下命令,会在当前用户目录下生成一个。第四步,查询pyTorch官网,执行对应版本的安装命令。第三步,在终端中执行如下命令,清除历史索引缓存。第二步,复制或者编辑如下内容到。activate 环境名。
2023-09-16 10:17:07
123
1
转载 [摘转] 关于字典同key,不同value的添加方法
list = [('ab',1), ('ab',2), ('ab',3), ('cd',4), ('ef',5)] new_dict = {} for k_v in list: k, v = k_v new_dict.setdefault(k, []).append(v) print(new_dic) {'ab': [1, 2, 3], 'cd': [4], 'ef': [5]} 【摘转自混沌鳄鱼】
2021-12-13 11:15:27
987
转载 os.path.dirname(__file__)方法详解
该测试脚本所在的位置:D:\第1层\第2层\第3层\第4层\第5层\test11.py 1. import os 2. #该文件所在位置:D:\第1层\第2层\第3层\第4层\第5层\test11.py 4. path1 = os.path.dirname(__file__) 5. print(path1)#获取当前运行脚本的绝对路径 7. path2 = os.path.dirname(os.path.dirname(__file__)) # 8. print(pa
2020-10-19 10:46:01
4542
原创 KenLM cmake 更新信息
KenLM has switched to cmake cmake . make -j 4 But they recommend building out of tree mkdir -p build && cd build cmake … make -j 4 If you only want the query code and do not care about compression (.gz, .bz2, and .xz): ./compile_query_only.sh Windo
2020-10-17 15:23:45
193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅