摘要: var node = $('#id'); node.click(function(){ this.css('display','block'); //报错 this是一个html元素,不是jquery对象,因此this不能调用jquery的css()方法 $(this).css(); //正确 $( 阅读全文
posted @ 2022-07-16 16:09 paoPaoLong_liu 阅读(21) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $('.div1 .div3').click(function(){ opacity=$(this).css('opacity') if(opacity==1) $(this).css('opacity',0) else $(this).css('opacity',1) 阅读全文
posted @ 2022-06-04 09:45 paoPaoLong_liu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 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" 阅读全文
posted @ 2022-05-27 17:00 paoPaoLong_liu 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-04-23 22:34 paoPaoLong_liu 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #先下载pyautogui库,pip install pyautoguiimport os,timeimport pyautogui print(pyautogui.size()) # 返回所用显示器的分辨率; 输出:Size(width=1920, height=1080)width,height 阅读全文
posted @ 2022-04-11 19:06 paoPaoLong_liu 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-04-11 16:38 paoPaoLong_liu 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Python——a56爆大奖在线娱乐所学习的turtle函数库 /asd516970982/p/10527487.html 阅读全文
posted @ 2022-03-10 17:46 paoPaoLong_liu 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 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| 阅读全文
posted @ 2022-02-19 16:55 paoPaoLong_liu 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-01-23 11:05 paoPaoLong_liu 阅读(232) 评论(0) 推荐(0) 编辑
摘要: python random 学习 >>> import random >>> random.choice(['apple', 'pear', 'banana']) #从给定列表中选择一个 'apple' >>> random.sample(range(100), 10) # sampling without replacement 阅读全文
posted @ 2022-01-21 11:00 paoPaoLong_liu 阅读(20) 评论(0) 推荐(0) 编辑