上一页 1 ··· 3 4 5 6 7
摘要: Reference: https://kikaben.com/transformers-positional-encoding/ https://machinelearningmastery.com/a-gentle-introduction-to-positional-encoding-in-tr 阅读全文
posted @ 2020-08-05 17:54 shendawei 阅读(83) 评论(0) 推荐(0)
摘要: 一、常用命令: 1、文件操作 2、查看文件 3、文件内容搜索、替换 4、压缩、解压缩 ## 1、压缩: # 添加压缩包demo.tar.gz,压缩a.txt,b.txt.c.txt tar -zc[v]f demo.tar.gz a.txt b.txt c.txt # 2、解压: tar -zx[v 阅读全文
posted @ 2020-07-18 19:41 shendawei 阅读(108) 评论(0) 推荐(0)
摘要: 一、 阅读全文
posted @ 2020-07-17 15:43 shendawei 阅读(56) 评论(0) 推荐(0)
摘要: 一、copy.copy() import copy a = [1,2,3] b = a c = copy.copy(a) b:指向a内存地址,a变 --> b变 c:重新开辟内存,与a无关 二、\r 、\n 区别 三、decode(解码),encode(编码) 四、json Python Json 阅读全文
posted @ 2020-07-17 13:22 shendawei 阅读(86) 评论(0) 推荐(0)
摘要: 一、数据类型 1.基础 0渔:( **kwargs) 传:1. name = ... 2. 字典 **{,,,,} ( *args) 可变长度的列表(元祖) ( **kwargs) 可变长度的字典 *[] 遍历元素 print 默认换行,如需取消,可更改为 print('aaa',end = '\t 阅读全文
posted @ 2020-07-17 13:16 shendawei 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7