上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 查看已安装的包 pip list 安装指定包 pip install [package] 判断类型是否为空 if var is None: print('None') print()不换行 print('hell word',end='') 代码换行 print('hell\ o world'\ ) 阅读全文
posted @ 2022-03-13 15:15 裏表異体 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Sequence to Sequence Learning with Neural Networks https://arxiv.org/abs/1409.3215 Neural Machine Translation by Jointly Learning to Align and Transla 阅读全文
posted @ 2022-03-11 18:34 裏表異体 阅读(40) 评论(0) 推荐(0) 编辑
摘要: read() 读取全部数据 #打开文件 file = open('data/data/names/Arabic.txt') #一次性读取全部数据 print(file.read()) readline() 读取一行数据 # 打开文件 file = open('data/data/names/Arab 阅读全文
posted @ 2022-03-11 14:44 裏表異体 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 代码 读取excel数据合并并且保存为pkl格式 # -*- coding: utf-8 -*- import pandas as pd import os # 文件所在目录的路径 root = '日值数据集气温' # 获取目录下所有的文件名, 返回一个list file_name_list = o 阅读全文
posted @ 2022-03-01 01:00 裏表異体 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 目录下的文件 目录的名称 代码 import os # 文件所在目录的路径 root = '日值数据集气温' # 获取目录下所有的文件名, 返回一个list file_name_list = os.listdir(root) for file in file_name_list: print(fil 阅读全文
posted @ 2022-03-01 00:46 裏表異体 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 微信开放文档 https://developers.weixin.qq.com/miniprogram/dev/framework/ 腾讯云开发文档 https://docs.cloudbase.net/ MDN https://developer.mozilla.org/en-US/docs/We 阅读全文
posted @ 2022-02-28 18:03 裏表異体 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 参考文档 https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html 准备文件 wxml <!--pages/catprofile/catprofile.wxml--> <view class="container"> 阅读全文
posted @ 2022-02-28 14:34 裏表異体 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 代码 # -*- coding: utf-8 -*- """ Created on Wed Feb 23 20:37:01 2022 @author: koneko """ import numpy as np import matplotlib.pyplot as plt def sigmoid( 阅读全文
posted @ 2022-02-25 22:21 裏表異体 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Pytorch简介 PyTorch是一个基于Torch的Python开源机器学习库,用于自然语言处理等应用程序。它主要由Facebookd的人工智能小组开发,不仅能够 实现强大的GPU加速,同时还支持动态神经网络,这一点是现在很多主流框架如TensorFlow都不支持的。 PyTorch提供了两个高 阅读全文
posted @ 2022-02-22 19:44 裏表異体 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: 环境: Python版本: 3.8 IDE:Spyder 5.2.2 代码: from torchvision import datasets from matplotlib import pyplot as plt # 下载数据 from torchvision import datasets f 阅读全文
posted @ 2022-02-21 14:44 裏表異体 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页