上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: import multiprocessingimport timea = 1def add_a1(): # print("这里是进程:", i) time.sleep(3) global a for i in range(10000000): a += i print(a)def write_to_ 阅读全文
posted @ 2021-05-10 15:15 Mia妈妈加油呀 阅读(57) 评论(0) 推荐(0)
摘要: 数据安全? 线程锁 GLI 全局解释器锁 l = threading.Lock() l.acquire() # 加锁 l.release() # 释放锁 demo:import threadinga=1l= threading.Lock()def adda(i): l.acquire() # 线程锁 阅读全文
posted @ 2021-05-10 13:06 Mia妈妈加油呀 阅读(80) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>Vue 测试实例 - 菜鸟教程(runoob.com)</title><script src="https://unpkg.com/vue@next"></script></head><b 阅读全文
posted @ 2021-05-08 14:11 Mia妈妈加油呀 阅读(421) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>Vue 测试实例 - 菜鸟教程(runoob.com)</title><script src="https://unpkg.com/vue@next"></script> <style> 阅读全文
posted @ 2021-05-08 11:43 Mia妈妈加油呀 阅读(50) 评论(0) 推荐(0)
摘要: 使用 v-html 指令用于输出 html 代码: <!DOCTYPE html><html><head><meta charset="utf-8"><title>Vue 测试实例 - 菜鸟教程(runoob.com)</title><script src="https://unpkg.com/vu 阅读全文
posted @ 2021-05-08 10:16 Mia妈妈加油呀 阅读(353) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> </head> <body> <div id="app"> <!-- 在页面上展示我们定义的变量 --> {{ msg }} <p>{{ name }}</p> <span>{{ age }}</span> <!-- 循环某某一个数组,这个v 阅读全文
posted @ 2021-04-14 09:29 Mia妈妈加油呀 阅读(53) 评论(0) 推荐(0)
摘要: 1. 写样式的三种方式 <link> <style> <p style= ""></p>直接写在标签中 2. 多种样式时,取最近的样式。下面例子显示9C1A1C色。 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title 阅读全文
posted @ 2021-04-07 14:35 Mia妈妈加油呀 阅读(116) 评论(0) 推荐(0)
摘要: import unittestdef add(): return 3class Test(unittest.TestCase): def test_1(self): result = add() self.assertEqual(3, result)unittest.main() 阅读全文
posted @ 2021-03-17 17:43 Mia妈妈加油呀 阅读(78) 评论(0) 推荐(0)
摘要: requests 请求方式: url= "XXX"data= {CCC}# 方法1 import requests req= requests.session() # 会保留headerurl = "http://127.0.0.1:5050/api/user/stu_info"data={"nam 阅读全文
posted @ 2021-03-16 15:40 Mia妈妈加油呀 阅读(54) 评论(0) 推荐(0)
摘要: class User: def __init__(self, name, age, address, course, grade=None): self.name = name self.__age = age self.address = address self.course = course 阅读全文
posted @ 2021-03-11 09:33 Mia妈妈加油呀 阅读(95) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页