ICode9

精准搜索请尝试: 精确搜索
  • 霓虹灯牌 V0.3已发布2021-12-10 13:34:51

    删了行代码,现在可以随时切换屏幕上的内容了。 希望各位多用用新版。 # _*_ coding: utf-8 _*_ from tkinter import * from time import sleep def display(text): global colors label['text'] = text count = 0 lcount = 5 while True: for each

  • 绘制一个五角星和六角形2021-12-05 14:02:02

    绘制一个五角星。(注:并在顶端加上:“我爱你中国”这几个字) 代码为: import turtle turtle.fillcolor("red") turtle.begin_fill() while True:     turtle.forward(220)     turtle.right(144)     if abs(turtle.pos()) < 1:         break turtle.end_fill()

  • The Path to Learning WR Python FPE.32021-12-04 16:02:39

    FOREWORD     Python已经成为最受欢迎的程序设计语言之一。自从2004年以后,python的使用率呈线性增长。Python 2于2000年10月16日发布,稳定版本是Python 2.7。Python 3于2008年12月3日发布,不完全兼容Python 2。 2011年1月,它被TIOBE编程语言排行榜评为2010年度语言。(摘自百度百

  • mybatis-plus自动填充踩坑2021-12-02 03:31:05

    学习使用mybatis-plus的自动填充功能,对create_time和update_time做一个自动填充,期间碰到了一些问题,记录一下问题和相关代码

  • C++ 编程语法积累2021-11-26 21:00:04

    fill()函数 函数简介 fill()与fill_n()的区别 为二级指针赋值 int **p = new int*[3]; for(int i=0;i<3;i++){ p[i] = new int[3]; fill_n(p[i],3,1); } 或者 int **p = new int*[3]; for(int i=0;i<3;i++){ p[i] = new int[3]; fill(p[i],p[i]+3,1); }

  • vue 动态添加组件2021-11-24 10:03:01

    关键: vue 的 :is 属性 最权威的,当然是vue官方说明 这是一个示例: 这段代码中,component 这个组件名在最后会被item.component 的具体值替代。 <template> <component :is="item.component" :config="item.config" v-for="item in list" :key="it

  • python基础编程:Python中turtle作图示例2021-11-23 15:30:50

    这篇文章主要介绍了Python中turtle作图示例,分享了几则turtle作图的小实例,具有一定参考价值,需要的朋友可以了解下 在Python里,海龟不仅可以画简单的黑线,还可以用它画更复杂的几何图形,用不同的颜色,甚至还可以给形状填色。 一、从基本的正方形开始 引入turtle模块并创建Pen对象: >

  • 数组辅助类-Arrays2021-11-22 17:01:58

    数组辅助类-Arrays 方法名称描述案例void sort(int[] )对数组中的元素排序Arrays.sort(a);equals(int[], int[] )判断两个数组是否相等Arrays.equals(a,b);fill(long[], long val)在数组中填入值Arrays.fill(a,5);int[] copyOf(int[] , int newLength)将数组拷贝到新的数组中

  • 分组查询最新数据2021-11-21 17:03:49

    利用b的 group by 分组查询出 fill_dept 和 最新 create_time,并将这个付给a的 fill_dept 和 create_time 再做一次条件查询,以便将所有字段取出。 如下代码: <select id="selectLatest" resultMap="Result"> select a.* from daily_report a, (select fill_dept, max(

  • 电脑常识[堆漏洞][Fastbin attck][0ctf][pwn]看不懂可以顺着网线来打我,极其详细的babyhea2021-11-18 09:34:32

    电脑常识[堆漏洞][Fastbin attck][0ctf][pwn]看不懂可以顺着网线来打我,极其详细的babyhea 一道典型的菜单题,攻击方式是堆溢出。 进入main函数查看发现结构如下图: 分析allocate函数 可以发现这里能通过调用calloc函数,分配一块最大为4096的chunk(通过calloc分配的chunk会被清空内容

  • Unity(UGUI)进度条2021-11-05 19:03:03

    进度条有两种方法 第一种是用Image来制作  将Image Type选择为Filled 将Fill Method选择为Horizontal(水平) 用代码控制Fill Amount的值就行 方法2: 用Slider来做 想要实现进度条效果,就要使用代码控制Value属性。  public class Times : MonoBehaviour { public Image load

  • Exploring your Postgraduate Study Options2021-11-04 10:02:15

    Exploring your Postgraduate Study Options Housekeeping A person with notebooks studying What are your motivations for considering postgraduate study? .Do I enjoy figuring out things independently? .Are there particular skills I would like learn? .Am I lo

  • and design icon 自定义图标 的时候 svg 颜色 无法改变的问题2021-11-03 22:04:27

    只需要在svg 里面 的 fill 属性 ,将其 颜色 替换 成 currentColor 即可 ,就可以通过 style 来控制 颜色 啦       

  • 【Turtle系列】过生日,对象送我一面锦旗。上面写着“生日快乐”。2021-11-02 09:33:18

      导语 ​这不?最近我兄弟的对象要过生日了,跑来我这边取取经——那小编的话肯定有各种办法滴。 这下子我写了个问卷发给了我微信的好友,还有这样子的生日礼物,着实让我笑了一晚上,也给大伙儿瞧瞧吧! 瞧瞧不同的生日礼物——

  • Python第八课:第三方库 ——turtle2021-10-26 18:03:52

    原码Gitee:https://gitee.com/xu-wen-jie/python.git 原码Github:https://github.com/miracleboys/Python.git 文章目录 1. 圆圈2.奥运五环3.美国盾牌4.彩旗飘飘5.星空 1. 圆圈 #第三方库 import turtle as t #画笔速度 t.speed(0) #画笔颜色 t.color('green') for i

  • TypeError: ‘NoneType‘ object is not subscriptable解决办法2021-10-24 19:30:01

    1.错误原因 TypeError: ‘NoneType’ object is not subscriptable 空类型对象不可以使用下标 报错代码: # 生成大小 I*J 的矩阵,默认零矩阵 def makeMatrix(I, J, fill=0.0): m = [] for i in range(I): m.append([fill] * J) def __init__(self, ni, nh, no)

  • 第一章程序练习题2021-10-21 17:33:57

    #1.1 str1 = input("请输入一个人的名字:") str2 = input("请输入一个国家名字:") print("世界这么大,{}想去{}看看。".format(str1, str2)) #1.2整数序列求和 n = input("请输入整数N:") sum = 0 for i in range(int(n)): sum += i + 1 print("1到N求和结果:", sum

  • python 画爱心2021-10-19 15:30:58

      import turtle as t t.shape ("turtle") #爱心 t.pensize(6) t.speed(1) t.pencolor("red") t.fillcolor("pink") t.begin_fill() t.left(90) t.circle(50,180) t.forward(30) t.left(30) t.forward(40) t.goto(0,-120) t.penup() t.goto(0,0

  • python的GUI编程之tkinter的使用(一)2021-10-17 13:06:20

    import tkinter as tk class App: def __init__(self,master): self.master = master self.initWidget() def initWidget(self): # 创建第一个容器 # pack表示布局 # """ # expand: 是否跟随父容器按比例扩

  • 用python画一个五角星2021-10-11 23:01:27

    from turtle import *fillcolor("red")begin_fill()while True: forward(200) right(144) if abs (pos()) < 1: breakend_fill()

  • ES6中copyWithin()与fill()的不同之处2021-10-10 13:32:42

    复制和填充方法 ES6新增了两个方法:批量复制方法copyWithin(),以及填充数组方法fill()。这两个方法的函数签名类似,都需要指定既有数组实例上的一个范围,包含开始索引,不包含结束索引。使用这个方法不会改变数组的大小。 使用fill()方法可以向一个已有的数组中插入全部或部分相

  • Figma 学习笔记 – Color2021-10-05 16:34:01

    大纲 Figma 的颜色是通过 FIll 实现的 (Fill 还有其它功能比如 fill 图片) 整体大概长这样, 我们一个一个看   颜色和 opacity                

  • Figma 学习笔记 – Image2021-10-05 14:33:33

    参考: Figma Tutorial: Images   3 Ways to Insert Image 1. rectangle + fill  画一个 rectangle 然后去 fill 选择 image then browse an image to insert. 2. ctrl + shift + k 使用 keyboard shortcut 可以快速实现第 1 个 way          

  • JavaScript数组之fill()——使用固定对象填充数组2021-10-01 23:35:28

    定义和用法 fill() 方法用于将一个固定值替换数组的元素。 浏览器支持 表格中的数字表示支持该方法的第一个浏览器版本号。 浏览器 Chrome IE FireFox Safari Opera 支持版本 45.0 12.0 31.0 7.1 32.0 IE1及更早版本不支持fill()方法。 语法 array.fill(value, start,

  • Python语言程序设计Y.Daniel Liang练习题Chapter32021-09-30 11:58:15

    list3.1 import math print("exp(1.0)=", math.exp(1)) print("log(2.78)=", math.log(math.e)) print("log10(10,10)=", math.log(10,10)) print("sqrt(4.0)=", math.sqrt(4.0)) print("sin(PI/2)=", math.sin(math.pi/

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有