按类别查询搜索结果
关于关键词 的检测结果,共 1726
专注的阿熊 | 2022-10-25 17:20:14 | 阅读(1290) | 评论(0)
# 1-1导入turtle模块进行设计import turtleimport time# 1-2画心形圆弧def hart_arc():    for i in range(200):        turtle.right(1)        turtle.forward(2)def move_pen_...【阅读全文】
fbwd | 2022-09-29 14:28:16 | 阅读(0) | 评论(0)
1.4 格式化打印,打印好看的个人信息卡--------Personal Information--------Name:zhangfeiAge:18HomeTown:hebei--------End--------=====================================================脚本如下所示:name = input("yourname:")age = input("yourage:")hometown = input("yourhometown:")msg = f'''...【阅读全文】
专注的阿熊 | 2022-09-21 13:58:27 | 阅读(430) | 评论(0)
# 第一版#-*-coding:utf-8-*-import osimport reimport timeimport requestsimport bs4from bs4 import BeautifulSoup# 手动写入目标套图的首页地址download_url = "https://www.xgmn09.com/XiaoYu/XiaoYu23172.html"# 手动写入目标套图的页数page_num = 25# 创建一个文...【阅读全文】
播数据58 | 2022-09-08 18:52:12 | 阅读(460) | 评论(0)
专注的阿熊 | 2022-09-02 12:02:21 | 阅读(410) | 评论(0)
# @Time : 2022/8/23 10:38# @Author : 是Dream呀# @File : 中秋节.pyimport turtleimport timeimport pygameimport randomimport tkinter as tkimport threadingdef drawMoon():  # 绘制月亮    turtle.penup()  # 画笔拿起  &nbs...【阅读全文】
专注的阿熊 | 2022-08-26 14:07:09 | 阅读(410) | 评论(0)
from wordcloud import WordCloudimport wordcloudimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom PIL import Image, ImageDraw, ImageFont# 解决读取图片报错from PIL import ImageFileImageFile.LOAD_TRUNCATED_IMAGES = Trueimport os# 获取背景...【阅读全文】
老男孩IT教育机构 | 2022-08-22 17:10:40 | 阅读(4180) | 评论(0)
所谓“水仙花数”是指一个三位数,其各位数字立方和等于该数本身。用Python输出水仙花数,对于有面试需求或者对算法感兴趣的同学,是一定要掌握的,在面试过程中,面试官很大程度会让我们书写算法,比如冒泡排序、九九乘法表、水仙花数等,那该如何写呢?请看下文:【阅读全文】
zenith518 | 2022-08-19 12:11:05 | 阅读(570) | 评论(0)
python recursive file loading【阅读全文】
老男孩IT教育机构 | 2022-08-12 14:14:15 | 阅读(320) | 评论(0)
我们在选择一个岗位前,往往会考虑其前景如何,薪资水平怎么样,入行门槛高不高,学习Python亦是如此,然而一个编程语言可从事的领域有很多,需要我们擦亮眼睛仔细找,下面是5个超级吃香的Python就业岗位,快来看看有没有你喜欢的吧,请看下文:【阅读全文】
专注的阿熊 | 2022-08-09 17:07:34 | 阅读(540) | 评论(0)
import randomimport pandas as pdimport time# 这里定义一个全局变量,用来表示最大的货架数——即批次种类限制N = 200# 然后是写一个函数,实现只存储同一订单对应的货品种类def big_and_small(choose0, order):    """    该函数用于在未保...【阅读全文】
老男孩IT教育机构 | 2022-08-05 15:05:53 | 阅读(190) | 评论(0)
学习Python的主要目的就是为了找到一个满足的工作,因此很多人都会刷各种各样的面试题,来帮助我们顺利通过面试。对此小编整理了一些Python常见面试题及答案,快来看看你的技术如何。【阅读全文】
老男孩IT教育机构 | 2022-08-02 15:26:28 | 阅读(430) | 评论(0)
在Python中,注释方式大致分为两种:单行注释和多行注释,#表示单行注释,'''或"""表示多行注释,接下来我们通过这篇文章为大家详细的讲解一下。【阅读全文】
老男孩IT教育机构 | 2022-07-22 13:47:05 | 阅读(280) | 评论(0)
 从字面上来讲,cython和python经常会被混淆在一起,也经常会有人问cython和python区别是什么?它们之间有什么关系或联系?对此小编特整理了这篇文章,我们一起来看看吧。【阅读全文】
专注的阿熊 | 2022-07-18 11:20:45 | 阅读(380) | 评论(0)
import tensorflow as tfimport tensorflow_hub as hubimport cv2from matplotlib import pyplot as pltimport numpy as npdef movenet(input_image):    """Runs detection on an input image.    Args:      i...【阅读全文】
【Python/Ruby】 深入了解神经
墨羽听风 | 2022-07-08 10:59:01 | 阅读(240) | 评论(0)
本章将介绍用于解决实际问题的深度学习架构的不同模块。前一章使用PyTorch的低级操作构建了如网络架构、损失函数和优化器这些模块。本章将介绍用于解决真实问题的神经网络的一些重要组件,以及PyTorch如何通过提供大量高级函数来抽象出复杂度。本章还将介绍用于解决真实问题的算法,如回归、二分类、多类别分类等。【阅读全文】
专注的阿熊 | 2022-07-07 17:19:16 | 阅读(600) | 评论(0)
# 定义决策树类class DecisionTree(object):    def __init__(self, classes, features,                 max_depth=10, min_samples_split=10,       &...【阅读全文】
专注的阿熊 | 2022-06-28 17:11:56 | 阅读(710) | 评论(0)
__author__ = 'marble_xu'import osimport jsonfrom abc import abstractmethodimport pygame as pgfrom . import constants as cclass State():    def __init__(self):        self.start_time = 0.0  &nb...【阅读全文】
专注的阿熊 | 2022-06-22 17:17:04 | 阅读(1920) | 评论(0)
"""贪吃蛇小游戏"""import randomimport sysimport timeimport pygamefrom pygame.locals import *from collections import dequeSCREEN_WIDTH = 600SCREEN_HEIGHT = 480SIZE = 20def print_text(screen, font, x, y, text, fcolor=(255, 255, 255)):  &n...【阅读全文】
老男孩IT教育机构 | 2022-06-13 16:01:52 | 阅读(390) | 评论(0)
随着人工智能的发展,Python编程语言成为很多人转行的首选语言,受到了世界各界人士的关注与追捧,也因如此Python工程师成为热门的职业,因为它就业薪资高、发展前景好,且具有庞大的市场需求量。那么如何快速成为一名优秀的Python工程师?感兴趣的小伙伴一起来看一下吧。【阅读全文】
专注的阿熊 | 2022-06-07 17:18:20 | 阅读(530) | 评论(0)
import pygameclass Bg(pygame.sprite.Sprite):    def __init__(self):        super(Bg, self).__init__()        bg_small = pygame.image.load('bg.png').convert_alpha()  &nb...【阅读全文】