摘要: 1 /*随即产生带有括号的30个式子 2 20133078_yulei*/ 3 #include <iostream> 4 #include <string> 5 #include <time.h>//用到了time函数 6 #define random(x)(rand()%x) 7 #define 阅读全文
posted @ 2021-09-21 20:56 youngTW 阅读(103) 评论(0) 推荐(0)
摘要: import pandas as pd df = pd.read_excel('C:\Users\60963\Desktop\Python成绩登记统计.xlsx') da = df.to_csv('C:\gg\Python_1.csv') da = pd.read_csv('C:\gg\Python 阅读全文
posted @ 2020-05-27 11:21 youngTW 阅读(203) 评论(0) 推荐(0)
摘要: import requests for i in range(1,21): r = requests.get("https://www.google.cn/") r.raise_for_status() r.encoding='utf-8' print(r.status_code) print(r. 阅读全文
posted @ 2020-05-13 15:49 youngTW 阅读(256) 评论(0) 推荐(0)
摘要: import numpy as np from PIL import Image vec_el = np.pi/2.2 vec_az = np.pi/4 depth = 10 im = Image.open("D:\\照片\\yun.png").convert('L') a = np.asarray 阅读全文
posted @ 2020-05-06 15:00 youngTW 阅读(133) 评论(0) 推荐(0)
摘要: import turtle number= int(input()) turtle.screensize(600,500,'white') turtle.pensize(3) turtle.pencolor('blue') turtle.fillcolor('yellow') turtle.begi 阅读全文
posted @ 2020-03-12 11:29 youngTW 阅读(125) 评论(0) 推荐(0)
摘要: import turtle turtle.speed(30) turtle.penup() off = True for y in range(-40, 30 + 1, 10): for x in range(-40, 30 + 1, 10): if off: turtle.goto(x, y) t 阅读全文
posted @ 2020-03-12 11:10 youngTW 阅读(130) 评论(0) 推荐(0)
摘要: import turtle t = turtle.Turtle() t.pensize(2) t.penup() t.goto(0,-50) t.pendown() t.begin_fill() t.fillcolor("black") t.circle(150,extent=180) t.circ 阅读全文
posted @ 2020-03-12 11:07 youngTW 阅读(157) 评论(0) 推荐(0)
摘要: import turtle turtle.width(10) turtle.color("red") turtle.circle(50) turtle.color("blue") turtle.penup() turtle.goto(120,0) turtle.pendown() turtle.ci 阅读全文
posted @ 2020-03-12 11:03 youngTW 阅读(154) 评论(0) 推荐(0)
摘要: import turtle turtle.pencolor("yellow") turtle.pensize("3") turtle.fillcolor("red") turtle.begin_fill() count = 1 while count <= 5: turtle.forward(100 阅读全文
posted @ 2020-03-12 10:36 youngTW 阅读(102) 评论(0) 推荐(0)
摘要: from turtle import * r = 20 for i in range (1,10,1): penup() goto(0,-(r+i*10)) pendown() circle((r+i*10)) 阅读全文
posted @ 2020-03-12 10:15 youngTW 阅读(128) 评论(0) 推荐(0)