用户:
程序侯查看:18 回复:14 评论:18 创建时间:2020-07-02T23:45:38
谁当我师傅?
本人优点:这就不用说了吧
本人缺点:算!法!scratch,kitten,python,还有C\C++!五子棋,围棋这些,统统不会!众所周知,我通天塔S6赛季是第10名,是博士IV,拥有168段位积分。本来我可以引以为傲,但是,上进心,让我,很!伤!心!!!!!
在初期,我的胜率为N-1/N,百战九十九胜;但从博士I开始,百战六十败,别提有多惨了!而失败的原因,有一半是最后一题——python操作题。你知道我一样多难吗!数独!输入一个9*9的数度提,要我解出来!
python!open,requests,…………统统不会!众所周知,我通天塔S6赛季是第10名,是博士IV,拥有168段位积分。本来我可以引以为傲,但是,上进心,让我,很!伤!心!!!!!
在初期,我的胜率为N-1/N,百战九十九胜;但从博士I开始,百战六十败,别提有多惨了!而失败的原因,有一半是——python!无论是单选题,多选题,还是判断题以及填空题,只要涉及到高级点的python,我一窍不通!
师傅,求求你了,收!下!我!吧!
C本植物我!功底如下↓
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from turtle import *
'''
绘制皮卡丘头部
'''
def face(x,y):
"""画脸"""
begin_fill()
penup()
# 将海龟移动到指定的坐标
goto(x, y)
pendown()
# 设置海龟的方向
setheading(40)
circle(-150, 69)
fillcolor("#FBD624")
# 将海龟移动到指定的坐标
penup()
goto(53.14, 113.29)
pendown()
setheading(300)
circle(-150, 30)
setheading(295)
circle(-140, 20)
print(position())
forward(5)
setheading(260)
circle(-80, 70)
print(position())
penup()
goto(-74.43,-79.09)
pendown()
penup()
# 将海龟移动到指定的坐标
goto(-144,103)
pendown()
setheading(242)
circle(110, 35)
right(10)
forward(10)
setheading(250)
circle(80, 115)
print(position())
penup()
goto(-74.43,-79.09)
pendown()
setheading(10)
penup()
goto(-144, 103)
pendown()
penup()
goto(x, y)
pendown()
end_fill()
# 下巴
penup()
goto(-50, -82.09)
pendown()
pencolor("#DDA120")
fillcolor("#DDA120")
begin_fill()
setheading(-12)
circle(120, 25)
setheading(-145)
forward(30)
setheading(180)
circle(-20, 20)
setheading(143)
forward(30)
end_fill()
# penup()
# # 将海龟移动到指定的坐标
# goto(0, 0)
# pendown()
def eye():
"""画眼睛"""
# 左眼
color("black","black")
penup()
goto(-110, 27)
pendown()
begin_fill()
setheading(0)
circle(24)
end_fill()
# 左眼仁
color("white", "white")
penup()
goto(-105, 51)
pendown()
begin_fill()
setheading(0)
circle(10)
end_fill()
# 右眼
color("black", "black")
penup()
goto(25, 40)
pendown()
begin_fill()
setheading(0)
circle(24)
end_fill()
# 右眼仁
color("white", "white")
penup()
goto(17, 62)
pendown()
begin_fill()
setheading(0)
circle(10)
end_fill()
def cheek():
"""画脸颊"""
# 右边
color("#9E4406", "#FE2C21")
penup()
goto(-130, -50)
pendown()
begin_fill()
setheading(0)
circle(27)
end_fill()
# 左边
color("#9E4406", "#FE2C21")
penup()
goto(53, -20)
pendown()
begin_fill()
setheading(0)
circle(27)
end_fill()
def nose():
"""画鼻子"""
color("black", "black")
penup()
goto(-40, 38)
pendown()
begin_fill()
circle(7,steps = 3)
end_fill()
def mouth():
"""画嘴"""
color("black", "#F35590")
# 嘴唇
penup()
goto(-10, 22)
pendown()
begin_fill()
setheading(260)
forward(60)
circle(-11, 150)
forward(55)
print(position())
penup()
goto(-38.46, 21.97)
pendown()
end_fill()
# 舌头
color("#6A070D", "#6A070D")
begin_fill()
penup()
goto(-10.00, 22.00)
pendown()
penup()
goto(-14.29, -1.7)
pendown()
penup()
goto(-52, -5)
pendown()
penup()
goto(-60.40, 12.74)
pendown()
penup()
goto(-38.46, 21.97)
pendown()
penup()
goto(-10.00, 22.00)
pendown()
end_fill()
color("black","#FFD624")
penup()
goto(-78, 15)
pendown()
begin_fill()
setheading(-25)
for i in range(2):
setheading(-25)
circle(35, 70)
end_fill()
color("#AB1945", "#AB1945")
penup()
goto(-52, -5)
pendown()
begin_fill()
setheading(40)
circle(-33, 70)
goto(-16,-1.7)
penup()
goto(-18,-17)
pendown()
setheading(155)
circle(25, 70)
end_fill()
def ear():
"""画耳朵"""
# 左耳
color("black","#FFD624")
penup()
goto(-145, 93)
pendown()
begin_fill()
setheading(165)
circle(-248,50)
right(120)
circle(-248,50)
end_fill()
color("black", "black")
penup()
goto(-240, 143)
pendown()
begin_fill()
setheading(107)
circle(-170, 25)
left(80)
circle(229, 15)
left(120)
circle(300, 15)
end_fill()
# 右耳
color("black", "#FFD624")
penup()
goto(30, 136)
pendown()
begin_fill()
setheading(喵)
circle(-248, 50)
right(120)
circle(-248, 50)
end_fill()
color("black", "black")
penup()
goto(160, 200)
pendown()
begin_fill()
setheading(52)
circle(170, 25)
left(116)
circle(229, 15)
left(71)
circle(-300, 15)
end_fill()
def setting():
"""设置参数"""
pensize(2)
# 隐藏海龟
hideturtle()
speed(10)
def main():
"""主函数"""
setting()
face(-132,115)
eye()
cheek()
nose()
mouth()
ear()
done()
if __name__ == '__main__':
main()
点赞0
评论
我12岁,XXS(滑稽)六年级(马上就七年级了),但是会……我也不知道是八年级还是九年级的数学内容,编程方面会JavaPythonJavascriptC++,个人主页(未完工但是最近没动)https://mrpighead.github.io/ 我朋友的个人主页(我做的)https://mrredapple.github.io/ 我们团队的主页(未完工但是最近没动)https://ospringo.github.io/ 我的GitHub(开源社区)https://github.com/MrPigHead 我的QQ 2519700452 我的w微x信(不经常上线) mrpighead0210
点赞0
评论
萌新大佬from PIL import Image, ImageOps, ImageFilter
import matplotlib.pyplot as plt
import os
import shutil
files = os.listdir(os.path.realpath('picture_in'))
images_ext = [".png", ".jpg", ".gif", ".bpm", ".jpeg"]
for file in files:
ext = os.path.splitext(file)[-1]
if ext in images_ext:
name = os.path.splitext(file)
Dir = 'picture_in' + os.sep + file
shutil.move(Dir, name[0]+name[1])
img = Image.open(name[0]+name[1])
width, height = img.size
_, axes = plt.subplots(1, 5, figsize=(30, 30))
axes[0].imshow(img)
axes[0].set_title('original')
img_gray = img.convert('L')
plt.rcParams["image.cmap"] = "gray"
axes[1].imshow(img_gray)
axes[1].set_title('gray')
img_invert = ImageOps.invert(img_gray)
axes[2].imshow(img_invert)
axes[2].set_title('inverse')
img_gaussian = img_invert.filter(ImageFilter.GaussianBlur(5))
axes[3].imshow(img_gaussian)
axes[3].set_title('gaussian')
for x in range(width):
for y in range(height):
pos = (x, y)
A = img_gray.getpixel(pos)
B = img_gaussian.getpixel(pos)
img_gray.putpixel(pos, min(int(A+A*B/(255-B)), 255))
axes[4].imshow(img_gray)
axes[4].set_title('sketch')
img_gray.save(name[0]+'_sketch'+name[1])
plt.show()
点赞0
评论
萌新大佬#include<iostream>
using namespace std;
int main()
{
long long n,i,j,k;
bool o=0;
cin>>n;
for(i=2;i<=n;i++)
{
for(j=2;j<i;j++)
{
if(i%j==0&&i!=2)
{
break;
}
}
if(i==j)
{
for(k=i;n%k==0;n=n/k) cout<<k<<"*";
}
}
} 点赞0
评论