摘要: ①导入库并初始化数据 import pandas as pd from keras.models import Sequential from keras.layers.core import Dense, Activation import numpy as np # 参数初始化 inputfil 阅读全文
posted @ 2022-03-30 00:01 zhENie 阅读(147) 评论(0) 推荐(0)
摘要: Java web 目前已经熟悉了java的许多java基本语法,java GUI,数据库SQL基础。 在这两个月订了一个学习计划:深入学习JDBC,HTML语言,JavaScript脚本语言,Servlet开发,JSP开发,javaWeb三大框架:struts、spring、hibernate。 目 阅读全文
posted @ 2021-09-30 22:45 zhENie 阅读(54) 评论(0) 推荐(0)
摘要: 第一部分:要求 自动生成题目 用户可以输入答案 若用户输入答案正确,则提示正确;若答案错误,则提示错误 第二部分:估计实现所需时间 PSP Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Planning 计划 300 240 · Estimat 阅读全文
posted @ 2021-09-28 12:41 zhENie 阅读(51) 评论(0) 推荐(0)
摘要: 1、使用requests的get()函数访问必应网站20次,打印返回状态,text()内容,计算text属性和content属性所返回网页内容的长度。 代码如下: 1 import requests 2 for i in range(20): 3 r = requests.get('https:// 阅读全文
posted @ 2020-05-19 23:55 zhENie 阅读(186) 评论(0) 推荐(0)
摘要: 一、matplotlib读书笔记 1、导入模块:import matplotlib.pyplot as plt 2、定义图像窗口:figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True 阅读全文
posted @ 2020-05-06 21:42 zhENie 阅读(277) 评论(0) 推荐(0)
摘要: 效果图: 代码展示: 1 import jieba 2 import wordcloud 3 file=open("Ordinary World Chapter 1.txt","r") 4 tx=file.read() 5 file.close() 6 ls=jieba.lcut(tx) 7 txt 阅读全文
posted @ 2020-04-27 21:23 zhENie 阅读(261) 评论(0) 推荐(0)
摘要: 画画篮球场——→ 代码如下: 1 import turtle 2 turtle.pu() 3 turtle.left(90) 4 turtle.fd(250) 5 turtle.left(90) 6 turtle.fd(70) 7 turtle.left(20) 8 turtle.pd() 9 tu 阅读全文
posted @ 2020-03-24 22:29 zhENie 阅读(573) 评论(0) 推荐(0)
摘要: pi的计算公式选用:pi/4≈1-1/3+1/5-1/7+······来计算pi(∏)。 代码如下: 1 import time 2 import math 3 print(" Begin ") 4 start=time.perf_counter() #开始计时 5 scale=10 6 for i 阅读全文
posted @ 2020-03-23 23:01 zhENie 阅读(487) 评论(0) 推荐(0)
摘要: turtle库:1969年诞生,主要用于程序设计入门,是turtle绘图体系的python实现。 turtle的原理:有一种海龟在窗体正中心,在画布上游走,走过的轨迹形成了绘制的图形,由程序控制,可以变换颜色于改变宽度等等 turtle的绘图窗体:是turtle的一个画布空间,窗口的绘制单位是像素。 阅读全文
posted @ 2020-03-15 14:46 zhENie 阅读(344) 评论(0) 推荐(0)
摘要: 六角形绘制 1 import turtle 2 turtle.left(90) 3 turtle.color('yellow','green') 4 5 turtle.begin_fill() 6 for i in range(6): 7 turtle.fd(100) 8 turtle.right( 阅读全文
posted @ 2020-03-11 21:07 zhENie 阅读(189) 评论(0) 推荐(0)