码迷,mamicode.com
首页 >  
搜索关键字:gtk pixbuf rotate arbitrary angle    ( 2620个结果
ubuntu 执行sudo apt-get install libgtk2.0-devs安装gtk+-2.0时报错Failed to fetch IP:https://的解决
Err:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.1 404 Not Found [IP: 101.6.8.193 ...
分类:Web程序   时间:2020-03-31 10:30:57    阅读次数:94
GTK之treeview的手记1
GtkTreeView 构件是一个高级的构件,利用他你就可以制作出漂亮的普通列表或者是树状的列表。这个构件里可以包含一或者多行。他的构架呢?正是采用了大名鼎鼎的MVC (Model View Controller) 设计框架。也就是说数据和显示方式是进行了一种分离的操作。 于是在GtktreeVie ...
分类:其他好文   时间:2020-03-30 23:24:26    阅读次数:91
LeetCode 796. Rotate String
原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le ...
分类:其他好文   时间:2020-03-21 14:31:02    阅读次数:42
实例8:科赫雪花小包裹
#我的代码 1 import turtle 2 def koch(size, n): 3 if n == 0: 4 turtle.fd(size) 5 else: 6 for angle in [0, 60, -120, 60]: 7 turtle.left(angle) 8 koch(size/3 ...
分类:其他好文   时间:2020-03-20 22:02:06    阅读次数:80
小猪佩奇
from turtle import* def nose(x,y):#鼻子 penup()#提起笔 goto(x,y)#定位 pendown()#落笔,开始画 setheading(-30)#将乌龟的方向设置为to_angle/为数字(0-东、90-北、180-西、270-南) begin_fill ...
分类:其他好文   时间:2020-03-18 18:46:58    阅读次数:86
48. 旋转图像
1 //1、先转置 2 //2、第一列与最后一列交换、第二列与倒数第二列交换、... 3 class Solution 4 { 5 public: 6 void rotate(vector<vector<int>>& matrix) 7 { 8 int n = matrix.size(); 9 fo ...
分类:其他好文   时间:2020-03-18 18:24:44    阅读次数:44
leetcode48 旋转图像
这道题只需要搞明白矩阵位置跳转逻辑即可,首选是反着赋值,只花费额外变量存储第一个值即可,然后弄清跳转过程。 class Solution { public: void rotate(vector<vector<int>>& matrix) { if(matrix.empty()&&matrix[0] ...
分类:其他好文   时间:2020-03-14 12:48:36    阅读次数:38
3D魔幻旋转
对于小白来说,一个炫酷的装x特效是必不可少的,下面教你5分钟成功装x。 效果图如下: 很简单,首先我们先定义一个ul标签,然后在里面插入li标签,如下: <ul> <li class="top"><img src="C:/Users/User/Desktop/3D-rotate/image/timg ...
分类:其他好文   时间:2020-03-09 15:03:01    阅读次数:56
2D and 3D
2D <!-- transform transform:旋转 rotate(30deg); translate值(50px,100px)是从左边元素移动50个像素,并从顶部移动100像素。transform: translate(50px,100px); scale()方法,该元素增加或减少的大小, ...
分类:其他好文   时间:2020-03-08 13:47:21    阅读次数:72
plotly生成图片
楔子 有时候我们使用plotly绘制出好看的图表之后,我们希望保存下来,或者直接变成图表对应的字节流也行。那么该怎么做呢?我们就来说一下。 方法 首先要 安装这两个包。然后: ~~~sh yum install fuse libs 2.9.2 11.el7.x86_64 yum install gt ...
分类:其他好文   时间:2020-03-04 23:02:48    阅读次数:525
2620条   上一页 1 ... 10 11 12 13 14 ... 262 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!