测试用内容不重要

Author Avatar
NENEIIII Aug 23, 2021
  • Read this article on other devices

hexo n xx新建的post可以正常显示图片,但如果是自己直接拖拽过去一篇md,同样建立同名文件夹放图片就不行,目前只能采用第一种方式,然后把之前的md复制进去

测试图片


关于首页预览的字数显示:

渲染的部分不算吗??

以下是20个字符:一二三四五六七八九十九八七六五四三二一零

mathjax测试

highlight测试

C++

#include "stdafx.h"
#include "myCalculator.h"

#define MAX_LOADSTRING 100

// 全局变量:
HINSTANCE hInst;                                // 当前实例
WCHAR szTitle[MAX_LOADSTRING];                  // 标题栏文本
WCHAR szWindowClass[MAX_LOADSTRING];            // 主窗口类名

python

import torch.nn.functional as F
import torch.optim as optim
import matplotlib.pyplot as plt
import numpy as np
import sys
#from pylab import *
# --------------------准备数据集------------------
# Dataset, DataLoader
transform = transforms.Compose(
    [transforms.ToTensor(),
     transforms.Normalize((0.5, 0.5, 0.5), std =(0.5, 0.5, 0.5))])

trainset = torchvision.datasets.CIFAR10(root='./data', train=True,
                                        download=True, transform=transform)

testset = torchvision.datasets.CIFAR10(root='./data',train=False,
                                       transform=transform, download=True)
# 4张图为1份
trainloader = DataLoader(dataset=trainset, batch_size=4, shuffle=True, num_workers=0)
testloader = DataLoader(dataset=testset, batch_size=4, shuffle=True, num_workers=0)
classes = ('plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck')
#
dataiter = iter(trainloader)
images, labels = dataiter.next()
def imshow(img):
   img = img /2+0.5     # 非标准的(unnormalized)
   npimg = img.numpy()