摘要:
用python 处理可打印字符时ord(c) >= 32 and ord(c) <= 126 or ord(c) == 0x0a or ord(c) == 0x0d 其中 0x0D和0x0A不是很理解意思,那个是换行,那个是回车呢? 说实话,不清楚,到网上搜一... 阅读全文
posted @ 2021-01-07 21:01
Mr.zzz
阅读(524)
评论(0)
推荐(0)
摘要:
加载数据,这里可以使用自己的数据集# 加载数据def get_data_from_file(train_file, batch_size, seq_size): with open(train_file, encoding='utf-8') as f: ... 阅读全文
posted @ 2021-01-07 16:21
Mr.zzz
阅读(53)
评论(0)
推荐(0)
浙公网安备 33010602011771号