mysql数据库自增去重!

db= pymysql.connect('localhost','root','root','document',charset="utf8") cursor= db.cursor() sql= '''select pic FROM TongCheng_58;''' cursor.execute(sql) detail_list= cursor.fetchall() one_typle= detail_l...

VBA下载糗事百科图片

Sub 下载糗事百科图片() Dim b() As Byte For pagenum = 1 To 15 Dim xmlhttp As Object Set xmlhttp = CreateObject("MSXML2.XMLHTTP") strurl = "https://www.qiushibaike.com/pic/" & "page/" & page...

插入排序

.[img]http://dl.iteye.com/upload/picture/pic/89090/d7639744-af5c-339c-9f2c-a13e2ef54f84.jpg[/img]package sortAlgorithem;import java.util.Arrays;/** * 参考:http://v.youku.com/v_show/id_XMjIyMjgzNTMy.html * * 改进:将嵌套的...

PHP 替换字符串中的某个字符或某段字符

$str = ddddddddddddddddddddddddddddddddddddddddddddddddddd;ddddddddddddddddd;; $str2 = "/a/201901.jpg,/a/201902.jpg,/a/201903.jpg,/a/201904.jpg"; // $str3 = ""; // print_r(explode(",", $str2)); $array = explode(...

css3进度条小动画

直接看代码: HTML: CSS: .loading { width:100%; height:100%; background: #ff...

procob handle array-type host variable

l  Use select statement when we know the max rows will bereturned. WORKING-STORAGE SECTION. 01 TABLE-ROWS .   03S-SEQ-NUM-S    PIC S9(8) COMP-3    OCCURS 3 TIMES.   03S-NAME-S       PIC X(8)   ...

缓冲模糊效果

  import mx.transitions.Tween; import mx.transitions.easing.*; import flash.filters.BlurFilter;        var i=0; var j=0; _root.btn.onRelease=function(){        ball = new Tween(pic, "_x", easeType, 20, 400,1....

Design Patterns -- Flyweight

The intent of Flyweight is to use sharing to support large numbers of fine-grained objects efficiently. see pic:   A preliminary step in applying the Flyweight pattern is to extract the immutable part of an object so that...

相对自适应高度

相对自适应高度document.getElementById("left").style.height=document.getElementById("middle").scrollHeight+"px"图片自适应大小#pic{width:500px;height:500px;overflow: hidden;}#pic img{max-width:500px;width:expression(document....

32单片机之外部中断

stm32每个IO口都可以作为中断,103系列有19个外部中断线,其中线0-15为外部通用中断。而单片机不止16个IO口。因此每个线表示每组IO的特定的IO口。例如line2对应GPIOA-G.2。外部中断的使用步骤:1)初始化 IO 口为输入。2)开启 IO 口复用时...

32单片机学习之pwm波

学习完定时器中断之后,学习如何通过一个定时器来产生一个PWM波。32的定时器除了TIM6和7,都可以用来产生PWM波。其中1和8是高级定时器,可以同时产生7路pwm输出。TIM1使用pwm波的步骤如下:(1)开启TIM时钟,配置输出IO口为复用推挽输出(2...

在EditText或者TextView中插入图片

在EditText和TextView中插入图片主要用到SpannableString   SpannableString ss = new SpannableString("pic"); Drawable d = getResources().getDrawable(R.drawable.icon); d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHe...

js 实现图片预览

前端代码: js: function imgPreview(fileDom) { //判断是否支持FileReader if (window.FileReader) { var reader = new FileReader(); } else { alert("您的设备不支持图片预览功能,如需该功能请升级您的设备!"); ...

python批量压缩图片

import os def pic(file_dir): filenames = os.listdir(file_dir) flag = 0 for files in filenames: img = Image.open(file_dir+'/'+files) img.thumbnail((500,500)) img.save('img/'+...

HTML5背景属性、盒子模型和选择器

2.3 背景相关属性 body{     background-color:#37ff68;     background-image:url("../pic/js.jpg");     background-repeat:no-repeat;     background-position:bottom; }   background-color:背景 {MOD} background-ima...

发布经验,赚取财富值,与更多的电子工程师一起成长!

写文章

热门文章

一周热门问题