按类别查询搜索结果
关于关键词 的检测结果,共 1131
专注的阿熊 | 2023-01-05 16:53:53 | 阅读(380) | 评论(0)
import osclass Student:    def __init__(self,no,name,chinese,math,english):        self.no = no        self.name = name        self.chines...【阅读全文】
overmind1980 | 2023-01-04 21:40:27 | 阅读(180) | 评论(0)
换行回车回忆上次内容上次我们diy了 自己的小动物还可以 让小动物 变色、报时还可以 说些话这很亚文化很酷炫的亚文化不是吗?回忆一下...【阅读全文】
专注的阿熊 | 2023-01-04 16:58:43 | 阅读(360) | 评论(0)
import pywififrom pywifi import constimport timeimport datetime# 测试连接,返回链接结果def wifiConnect(pwd):    # 抓取网卡接口    wifi = pywifi.PyWiFi()    # 获取第一个无线网卡    if...【阅读全文】
专注的阿熊 | 2022-12-27 16:30:26 | 阅读(690) | 评论(0)
# -*- coding: utf-8 -*-from PyQt5 import QtCore, QtGui, QtWidgetsclass Ui_MainWindow(object):    def setupUi(self, MainWindow):        MainWindow.setObjectName("MainWindow")       &nb...【阅读全文】
老男孩IT教育机构 | 2022-12-23 14:01:18 | 阅读(470) | 评论(0)
所谓Python名称空间就是存放名字的空间,是对栈区的划分,有了名称之后,就可以在栈区中存放相同的名字。而在Python中,Python名称空间又被分为三类:全局命名空间、局部命名空间和内置命名空间,接下来是详细的内容介绍。【阅读全文】
老男孩IT教育机构 | 2022-12-20 14:08:51 | 阅读(480) | 评论(0)
Python语言的应用场景可谓是十分全面,比如后端开发、网络爬虫、人工智能、数据分析,之所以应用场景这么广泛,其原因在于丰富的第三方库,那么适用于网络爬虫的第三方库有哪些呢?以下是详细的内容:【阅读全文】
专注的阿熊 | 2022-12-16 17:38:41 | 阅读(550) | 评论(0)
# 将 release_date 转化为 pandas支持的时间序列datalist.loc[:, 'release_date'] = pd.to_datetime(datalist.loc[:, 'release_date'])# 获取 发行年份datalist.loc[:, 'release_year'] = datalist.loc[:, 'release_date'].dt.year# 进行字符串分割temp_list = [i.split(",") for i in datalist["gen...【阅读全文】
fbwd | 2022-12-06 17:30:05 | 阅读(0) | 评论(0)
s = "red Apple"##apple的字符串t = s.capitalize() ##首字符大写u = s.casefold() ##全部小写v = s.center(50,'+') ## 格式,一共50个,不够填充+号w = "red\tApple"##\t表示tab键print(s,t,u,v,w)"C:\Program Files\Python310\python.exe" "C:/Python/python8天从入门到精通/Day3/3.1 数据类型-字符串各种操作.py"...【阅读全文】
fbwd | 2022-12-01 17:05:13 | 阅读(0) | 评论(0)
while 条件成立就执行,不成立就不执行。循环一次就判断一次。count = 0while count < 5:    count += 1    print ("loop", count)"C:\Program Files\Python310\python.exe" C:/Python/while/0.pyloop 1loop 2loop 3loop 4loop 5Process finished with exit code 0===============...【阅读全文】
fbwd | 2022-12-01 14:35:49 | 阅读(0) | 评论(0)
for i in range(1,10):    if i >=5:        j = 10-i        print ("*" * j)    else:        print ("*" * i)"C:\Program Files\Python310\p...【阅读全文】
fbwd | 2022-11-30 15:13:00 | 阅读(0) | 评论(0)
===============print prime number===============print the prime number between 1-100######################################################for i in range(2,2): print (i)"C:\Program Files\Python310\python.exe" "C:/Python/for 循环/prime number.py"Process finished with exit code 0######...【阅读全文】
【Python/Ruby】 基础学PYTHON2.6
fbwd | 2022-11-29 15:14:28 | 阅读(0) | 评论(0)
1x1=11x2=2,2x2=41x3=3,2x3=6,3x3=91x4=4,2x4=8,3x4=12,4x4=161x5=5,2x5=10,3x5=15,4x5=20,5x5=251x6=6,2x6=12,3x6=18,4x6=24,5x6=30,6x6=361x7=7,2x7=14,3x7=21,4x7=28,5x7=35,6x7=42,7x7=491x8=8,2x8=16,3x8=24,4x8=32,5x8=40,6x8=48,7x8=56,8x8=641x9=9,2x9=18,3x9=27,4x9=36,5...【阅读全文】
【Python/Ruby】 基础学PYTHON2.5-for
fbwd | 2022-11-29 11:57:11 | 阅读(0) | 评论(0)
命令1:    print(f"层".center(10, '-'))输出: --当前在1层-----当前在2层-----当前在3层---###########################################################第一个for循环里面,嵌套了第2个for循环。 也就是第一个for循环是包含第2个for循环的。 也就是第2个for循环是在第一个for循环...【阅读全文】
老男孩IT教育机构 | 2022-11-29 11:54:25 | 阅读(520) | 评论(0)
众所周知,Python是一门脚本语言,也被称为胶水语言,其应用领域也是十分广泛的,哪怕你不想从事IT行业,学习Python语言也是百利而无一害的,今天给大家详细介绍下Python网络爬虫究竟是什么,请看下文:【阅读全文】
【Python/Ruby】 基础学PYTHON 1.5-2.5
fbwd | 2022-11-24 17:58:48 | 阅读(0) | 评论(0)
https://www.luffycity.com/play/35159   列表的增删改查   1.12  8:42   list 列表##命令name_list = ["Tom","Jack li","Nelson Wang","Eric","","zhang fei"]##执行结果name_list = ["Tom","Jack li","Nelson Wang","Eric","","zhang fei"]name_list['Tom', 'Jack li'...【阅读全文】
专注的阿熊 | 2022-11-21 17:33:15 | 阅读(540) | 评论(0)
import randomimport pygame'''植物'''class Plant(pygame.sprite.Sprite):def __init__(self, WIDTH=640, HEIGHT=500):pygame.sprite.Sprite.__init__(self)self.WIDTH = WIDTHself.HEIGHT = HEIGHT# 统计分数时用的self.added_score = Falseself.speed = 5# self.imgs = [...【阅读全文】
专注的阿熊 | 2022-11-07 12:46:45 | 阅读(570) | 评论(0)
# 人生重开模拟器import randomimport sysimport timeprint("***************************************************")print('*                           &nb...【阅读全文】
【Python/Ruby】 openCV实践
专注的阿熊 | 2022-10-26 14:10:52 | 阅读(420) | 评论(0)
import cv2import numpy as npfrom imutils import contours  # 排序操作,也可以不用。# 绘图展示def cv_show(name, img):    cv2.imshow(name, img)    cv2.waitKey(0)    cv2.destroyAllWindows()# 读取一个模板图...【阅读全文】
专注的阿熊 | 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# 创建一个文...【阅读全文】
zenith518 | 2022-08-19 12:11:05 | 阅读(570) | 评论(0)
python recursive file loading【阅读全文】