摘要:
var node = $('#id'); node.click(function(){ this.css('display','block'); //报错 this是一个html元素,不是jquery对象,因此this不能调用jquery的css()方法 $(this).css(); //正确 $( 阅读全文
摘要:
$(function(){ $('.div1 .div3').click(function(){ opacity=$(this).css('opacity') if(opacity==1) $(this).css('opacity',0) else $(this).css('opacity',1) 阅读全文
摘要:
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <meta name="viewport" 阅读全文
摘要:
1 <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> 2 Name: <input type="text" name="fname"> 3 <input type="submit"> 4 </form> 5 6 <?ph 阅读全文
摘要:
#先下载pyautogui库,pip install pyautoguiimport os,timeimport pyautogui print(pyautogui.size()) # 返回所用显示器的分辨率; 输出:Size(width=1920, height=1080)width,height 阅读全文
摘要:
1 #先下载pyautogui库,pip install pyautogui 2 import os,time 3 import pyautogui as pag 4 try: 5 while True: 6 print("Press Ctrl-C to end") 7 x,y = pag.posi 阅读全文
摘要:
Python——a56爆大奖在线娱乐所学习的turtle函数库 /asd516970982/p/10527487.html 阅读全文
摘要:
1 <p>{{ dict }}</p> 2 <p>{{ dict.name|upper|truncatewords:"8" }}</p> 3 <p>{{ dict.name|length}}</p> 4 <p>{{ num|filesizeformat}}</p> 5 <p>{{dict.name| 阅读全文
摘要:
def hello(name): print("Hello "+name) def bye(): print(" Program is over ") def max(a,b): if a>b: print('a',a) else: print('b',b) def change(a): print 阅读全文
摘要:
>>> import random >>> random.choice(['apple', 'pear', 'banana']) #从给定列表中选择一个 'apple' >>> random.sample(range(100), 10) # sampling without replacement 阅读全文
![python random 学习](https://img2022.cnblogs.com/blog/1598764/202201/1598764-20220121110017289-2118962804.png)