码迷,mamicode.com
首页 >  
搜索关键字:collections    ( 9831个结果
758. Bold Words in String
package LeetCode_758 import java.util.* import kotlin.collections.HashSet /** * 758. Bold Words in String * (Prime) * Given a set of keywords words an ...
分类:其他好文   时间:2020-09-17 18:53:02    阅读次数:31
Unity_Live2d 特效孵化器实现花瓣等装饰飘落UI类效果②
实现效果:运行时右上角随固定范围的轨迹飘落花瓣和心形。 1.canvas内新建图片,素材图拉进去以后设置好合适的大小,做成预制体。创建空物体,将空物体中心点移动到画布右上角的点对齐,脚本控制物体的随机出现与定时销毁。 using System.Collections; using System.Co ...
分类:编程语言   时间:2020-09-17 17:39:46    阅读次数:37
Pytorch-seq2seq机器翻译模型(不含attention和含attention两个版本)
由于语料短,训练时间也短,模型性能不好,以下演示过程。 语料链接: 数据格式如图(先英文,再空格,再繁体中文): 以下代码运行在Google Colab上。 导包: 1 import os 2 import sys 3 import math 4 from collections import Co ...
分类:其他好文   时间:2020-09-17 16:27:41    阅读次数:29
Pytorch和Tensorflow2.0实现mnist_fashion分类
Pytorch: import torchfrom torch import nnfrom torch.nn import initimport numpy as npimport sysfrom collections import OrderedDictdef load_data_fashion ...
分类:其他好文   时间:2020-09-17 16:24:38    阅读次数:33
C#操作Sql数据库之对数据库进行增删改查
测试窗体为: 直接上代码: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using ...
分类:数据库   时间:2020-09-17 12:31:54    阅读次数:43
字体相关参数与数据集合
项目中,需要实现字体相关操作,收集了一些相关参数,可以引用的。 using System.Collections.Generic; using System.Drawing; using System.Drawing.Text; using System.Linq; using System.Net ...
分类:其他好文   时间:2020-09-15 21:20:52    阅读次数:53
Xml文件的序列化操作
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xm ...
分类:其他好文   时间:2020-09-09 18:55:07    阅读次数:45
代码重构之委派代替继承【组合代替继承】
核心:继承应该是在存在逻辑关系的环境中使用,而不是出于方便的目的。没有意义的继承用委派替代【用组合替代继承】,这样可以避免类中增加额外没有意义的接口。 代码演示: 1、代码 using System; using System.Collections.Generic; using System.Li ...
分类:其他好文   时间:2020-09-08 20:51:16    阅读次数:55
Python之pyecharts数据可视化,词云图,仪表盘!
一、词云图 词云就是通过形成关键词云层或关键词渲染,过滤掉大量的文本信息,对网络文本中出现频率较高的关键词的视觉上的突出。 import jieba import collections import re from pyecharts.charts import WordCloud from py ...
分类:编程语言   时间:2020-09-04 17:45:03    阅读次数:96
第43天 2020/8/17
第四章最后一题 明天学习第五章 vector模板 和list一样 但是方法名称不一样 定义和list一样,尤其需要指定数据类型 Vector<Integer> v=new Vector<Integer>(10); v.addElement(a); 排序 可以直接调用方法 Collections.so ...
分类:其他好文   时间:2020-09-03 16:54:17    阅读次数:38
9831条   上一页 1 ... 11 12 13 14 15 ... 984 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!