ZhangZhihui's Blog  
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 78 下一页

2024年8月6日

摘要: 阅读全文
posted @ 2024-08-06 20:01 ZhangZhihuiAAA 阅读(10) 评论(0) 推荐(0) 编辑

2024年8月5日

摘要: 阅读全文
posted @ 2024-08-05 16:26 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-08-05 15:51 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑

2024年8月4日

摘要: import turtle import math from random import uniform from dataclasses import dataclass WIDTH = 1200 HEIGHT = 800 MIN_V = 5 MAX_V = 15 MIN_SIZE_FACTOR 阅读全文
posted @ 2024-08-04 17:35 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0) 编辑

2024年8月3日

摘要: So p=mv normally but why does ∆p = 2mv when a molecule or something hits a wall and comes back? v is velocity and when using velocity direction matter 阅读全文
posted @ 2024-08-03 16:37 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: import time SLEEP = 50 def tick(): start = time.perf_counter() # hi-resolution timer (in seconds) # do something ... elapsed = int(1000 * (time.perf_c 阅读全文
posted @ 2024-08-03 13:35 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0) 编辑

2024年8月2日

摘要: A typical event-driven program is not doing anything most of the time, and its functionality is only triggered by external signals, such as user input 阅读全文
posted @ 2024-08-02 16:07 ZhangZhihuiAAA 阅读(11) 评论(0) 推荐(0) 编辑

2024年7月31日

摘要: with statement Here is the syntax of the with statement: with expression as var: statements The expression should be a context manager object, or it s 阅读全文
posted @ 2024-07-31 21:50 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0) 编辑
 
摘要: Figure 20.4: Built-in exceptions The class BaseException is the base class of all the built-in exception classes. From BaseException, four classes nam 阅读全文
posted @ 2024-07-31 21:03 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0) 编辑
 
摘要: There are two approaches that can be followed when we want to deal with exceptions that occur due to unusual events: LBYL - Look Before You Leap EAFP 阅读全文
posted @ 2024-07-31 20:48 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 78 下一页