![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
实战
心心强
学海无涯吧。希望跟大家多多交流。
展开
-
unity 360查看一个三维物体
unity360对某个物体查看原创 2022-01-07 16:09:23 · 259 阅读 · 0 评论 -
unity 安卓sdk 配置
https://blog.csdn.net/j04110414/article/details/44149653原创 2021-05-10 18:32:47 · 677 阅读 · 0 评论 -
3 OpenGL 绘制四边形
#include<glad/glad.h> #include<GLFW/glfw3.h> #include<stdio.h> const unsigned int _width=800; const unsigned int _height=600; const char* vertexShaderSource = "#version 330 core\n" "layout (location = 0) in vec3 aPos;\n" "void main()\n".原创 2020-07-07 17:14:04 · 396 阅读 · 0 评论 -
python制作文字音频
#谷歌文字转语音api from gtts import gTTS with open("demo.txt",'r',encoding="utf8") as f: audio = gTTS(text=f.read(),lang="zh-cn") audio.save("demo.mp3")原创 2020-05-24 17:49:44 · 198 阅读 · 0 评论 -
pdf转world
https://github.com/qinweiming/pdf2word原创 2020-04-21 15:35:46 · 166 阅读 · 0 评论 -
pycharm 中pip 升级报错的问题解决!
pycharm 中pip 升级报错的问题解决! python -m pip install -U --force-reinstall pip命令升级原创 2020-04-20 00:02:27 · 578 阅读 · 0 评论 -
实类2:将模拟数据制作成内存对象数据集
1.生成模拟数据 import numpy as np import matplotlib.pyplot as plt import tensorflow as tf #from sklearn.utils import shuffle def GenerateData(batchsize=100): train_X=np.linspace(-1,1,batchsize) tr...原创 2020-04-18 01:05:49 · 157 阅读 · 0 评论 -
Tensorflow线性回归问题(y=2x+1)
1.准备数据 import numpy as np import matplotlib.pyplot as pt #np.linspace生成100个等差数列,取值0,1之间 x_data=np.linspace(0,1,100) #np.random.randn(*x_data.shape)维度跟x_data一致 y_data=2*x_data +1.0+np.random.randn(*x...原创 2020-04-13 12:29:00 · 738 阅读 · 0 评论 -
统计文章内词频率
import collections target_str="THE TRAGEDY OF ROMEO AND JULIET" with open('./罗密欧与朱丽叶(英文版)莎士比亚.txt', encoding='utf-8') as file: txts=file.read() #用 split 将单词利用空格切分开 将文本文件变成单词的列表 danci=txt...原创 2020-04-10 12:14:36 · 211 阅读 · 0 评论 -
吃苹果小游戏(Python)
1.公共类模块 import pygame from pygame.rect import Rect def print_text(font, x, y, text, color=(255, 255, 255)): imgText=font.render(text, True, color) screen=pygame.display.get_surface() s...原创 2020-03-20 20:20:51 · 4285 阅读 · 0 评论 -
微信打飞机游戏(python)
import pygame import random import sys #初始化 pygame.init() pygame.display.set_caption('飞机火拼')#设置窗口标题 screen= pygame.display.set_mode((320, 570), 0, 32) pygame.mouse.set_visible(False)#隐藏光标 #加载图片 boo...原创 2020-03-19 21:35:17 · 436 阅读 · 1 评论 -
贪吃蛇小游戏(python)
import pygame import sys import random SCREEN_X=600 SCREEN_Y=600 class Snake(object): def __init__(self): self.direction=pygame.K_RIGHT self.body = [] for i in range(5)...原创 2020-03-17 15:11:54 · 198 阅读 · 0 评论