const { resolve } = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './src/js/index.js', output: ...
分类:
Web程序 时间:
2020-12-02 12:28:54
阅读次数:
11
在Tensor后加 .long(), .int(), .float(), .double()等即可,也可以用.to()函数进行转换,所有的Tensor类型可参考https://pytorch.org/docs/stable/tensors.html import torch a = torch.Do ...
分类:
其他好文 时间:
2020-12-02 12:26:05
阅读次数:
5
实现功能:滚轮缩放,鼠标左键按住移动,缩放时刻度线跟着一起移动,缩放时以鼠标的位置为中心 效果图: 工程文件: mywidget.h #ifndef MYWIDGET_H #define MYWIDGET_H #include <QWidget> #include "ui_mywidget.h" # ...
分类:
其他好文 时间:
2020-12-02 12:25:01
阅读次数:
7
var html = '<div style="color:#868686; font-size: 16px;text-align:center;line-height:380px;">暂无数据</div>' document.getElementById('box01').innerHTML = ...
分类:
其他好文 时间:
2020-12-02 12:23:02
阅读次数:
5
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_pare ...
分类:
其他好文 时间:
2020-12-02 12:21:59
阅读次数:
4
/** * 获取 url 里面的参数 * @param {string} url * @returns {Object} */ export function getQueryObject(url) { url = url == null ? window.location.href : url c ...
分类:
Web程序 时间:
2020-12-02 12:16:31
阅读次数:
13
之前程序实验课上遇到的一道题,由于没做出来,这里有答案后在此记录一下 这里答案是非函数的方法做的,后面我自己尝试着给改成了函数 #include <stdio.h> #include <string.h> int main() { char str[233]; //自定义一个数组 printf("输 ...
分类:
其他好文 时间:
2020-12-02 12:15:35
阅读次数:
5
布局的传统解决方案,基于盒状模型,依赖 display 属性 + position属性 + float属性。它对于那些特殊布局非常不方便,比如,垂直居中就不容易实现。
2009年,W3C 提出了一种新的方案----Flex 布局,可以简便、完整、响应式地实现各种页面布局。目前,它已经得到了所有浏览... ...
分类:
Web程序 时间:
2020-12-02 12:08:02
阅读次数:
10
<template> <a-form :form="form" :label-col="{ span: 5 }" :wrapper-col="{ span: 2 }"> <a-form-item label="Gender"> <a-select placeholder="Select a opti ...
分类:
其他好文 时间:
2020-12-01 12:40:48
阅读次数:
14
严格按照https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Building_blocks学习 一.层叠与继承 1.冲突规则: CSS扩写:Cascading Style Sheets (cascade 有层叠的意思) 层叠:一边来说写在后面的规则会 ...
分类:
Web程序 时间:
2020-12-01 12:39:36
阅读次数:
10