0.1 Python 2 or Python 3 (Python 2 与 Python 3 的区别) (序一)

The print statement has become the print function. What this means is that this line in Python 2: print "hello world"

is as follows in Python 3: print("hello world”)

The raw_input function has also changed to input, so instead of: raw_input('What is your name?’)

you will see: input('What is your name?’)

The only other significant change is how Python handles various character sets.

You might find that your job still wants to use Python 2. We believe that going from Python 3 to Python 2 is pretty easy - so don't worry too much about the version of Python that you learn when you are first starting out.

主要区别在一些命令的拼写上, 不过不需要太过于担心, 版本不是什么大问题.

1.1 Why Program (为什么要编程)

Maker of technology.

Being a user to Being a programmer.

Different side of Applications (Back/ Front).

Computers are good at counting stuff or calculating numbers, but humans are not good at that. 

通过计算机来实现大量计算,或者是对人类繁琐的事情.

1.2 Hardware Overview (硬件简介)

Input and Output Devices: Access/display outside/inside the world/computer such as mouse, keyboard, screen, etc.

Software

  • Central Processing Unit: Millions Circuit.
  • Main Memory: Program file loaded into here.
  • Secondary Memory: Permanent program file. (disk)

Using Input Devices to write a code in Secondary Memory, run the script in Main Memory, calculate in Central Processing Unit, return the result via Output Devices. That is how these components works.

输入输出设备/CPU/内存/磁盘

用户在磁盘上编写脚本, 运行时由内存提取, 并提供给CPU进行计算, 计算结果通过输出设备给用户.

1.3 Introduction of Python (Python 简介)

  • Weird Languages.
  • Python was named for was Monty Python's Flying Circus.
  • Py is powerful and useful.
  • Python is a powerhouse language. It is by far the most popular programming language for data science.
  • You can do many of the things you are used to doing in other programming languages but with Python you can do it with less code.
  • If you want to learn to program, it’s also a great starter language because of the huge global community and wealth of documentation.
  • Python is useful for many situations, including data science, AI and machine learning, web development, and IoT devices like the Raspberry Pi.
  • Large organisations that use Python heavily include IBM, Wikipedia, Google, Yahoo!, CERN, NASA, Facebook, Amazon, Instagram, Spotify, and Reddit. 
  • Python is a high-level general-purpose programming language that can be applied to many different classes of problems.
  • It has a large, standard library that provides tools suited to many different tasks, including but not limited to databases, automation, web scraping, text processing, image processing, machine learning, and data analytics.
  • For data science, you can use Python's scientific computing libraries such as Pandas, NumPy, SciPy, and Matplotlib.
  • For artificial intelligence, it has TensorFlow, PyTorch, Keras, and Scikit-learn.
  • Python can also be used for Natural Language Processing (NLP) using the Natural Language Toolkit (NLTK).
  • Another great selling point is the Python community, which has a well documented history of paving the way for diversity and inclusion efforts in the tech industry as a whole.

Don’t feel frustrated when something wrong (Syntax) in Python. People make mistakes. 

Python非常的强大且有用, 但是记住一点, 语法错误是学习的必经之路, 不需要为此感到难受.

0.2 Installing Python (安装Python)

(序二)

Install Python and text editor on computer.

Atom, IDE, PyCharm, etc.

I recommend that Atom is good for all systems.

Help your self!

Try to print “hello world” in Terminal or Command line.

1.4 Writing Paragraph of Code (尝试去编写一段代码)

Type Python statement in Python.

Name x using value 1.

>>> x = 1

Show the value of x

>>> print(x)
1

Add new value 1, which becomes 2.

>>> x = x + 1
>>> print(x)
>>> 2

Vocabulary (Reserved Words): False, class, if, return, for, assert, while, pass, etc.

You cannot use Reserved Words as a variable. These words have a specific meaning in Python.

保留字: Python会保留一些词, 这些词在Python中有特殊作用.

Sentences or Lines

x = 2 #Assignment statement
x = x + 2 #Assignment with expression
print(x) #Print function

x: Variable 

=: Operator

2: Constant

print (): Function 

Interactive: Directly using Python one line at a time and it responds. (通过Python进行交互式编写)

Script: Writing in a file using a text editor. (使用第三方编辑器进行编写)

Sequential Steps (顺序语句): When a program is running, it flows from one step to the next.

x = 2
print(x)
x = x + 2
print(x)

Conditional Steps (条件语句): It depends on the conditions to execute the statements.

x = 5
if x < 10:print('Smaller')
if x > 20:print('Bigger')
print('Finis')

Repeated Steps (重复语句): Loops have iteration variables that change each time through a loop.

n = 5
while n > 0:print(n)n = n -1
print('done!')

2.1 Expressions Part 1 (表达式)

Constants: Fixed values such as numbers, letters and strings. Because their value does not change. 

Numeric constants are as you expect: 

>>> print(123)
>>> 123

String constants use single quotes (‘) or double quotes (“)

>>> print('Hello world')
>>> Hello world

Variables (变量): A variable is a named place in the memory where a programmer can store data and later retrieve the data using the variable “name”. Programmer can choose the names of variable except Reserved Words. Also the variable can be change in a later statement.

>>> x = 5
>>> y = 10
>>> x = 100

Choose a sensible variable name for human beings! 

变量的选择将会直接影响一个程序, 以人的角度与习惯去选择变量. 

2.2 Expressions Part 2 (表达式)

Numeric Expressions: we use “computer-speak” to express the classic math operations.

+ Addition

- Subtraction

* Multiplication

/ Division

** Power (倍数)

% Remainder (余数)

>>> x = 1 + 2 * 3 / 4

Parenthesis > Power > Multiplication/Division > Addition/Sub > Left to Right.

Type: Python knows the difference between an integer number and a string.

>>>  x = 1 + 1
>>> x = 'hello ' + 'world'
>>> print(x)
>>> hello world

Notice that you cannot add 1 to a string.

Using type() to ask Python what is the type is.

Integers: are whole numbers: 1, 2, 10, 999, -8

Floating Point Numbers: have decimal parts: 1.5, 2.8, 100.12, -12.85

Integer division produces a floating point result in Python 3, in Python 2, it only gives a whole number.

String Conversions: you can also use int() and float to convert between strings and integers.

You will get an error if the string does not contain numeric characters.

>>> x = '123'
>>> type(x)
<class 'str'>
>>> x = int(x)
>>> print( x + 1 )
124

User Input: We can instruct Python to pause and read data from user using the input() function. The input() returns a string whatever you typed in.

name = input('Who are you?')
print('Welcome', name)Who are you?
>>> Cooper
Welcome Cooper

2.3 Expressions Part 3 (表达式)

Comment in Python:

Anything after a # is ignored by Python.

Why comment?

  • Describe what is going to happen.
  • Document who wrote the code or other information.
  • Turn of a line of code

Documentations are very important.

Try using Python: Calculate 35Hours, Rate 2.75 to gross pay. Using input() and float().

Try using Python: Covert elevator floors (UK - US). Ground Floor(UK) = 1 Floor(US).

3.1 Conditional Statements (条件语句)

Make a choice based on present conditions. It helps computer to be more intelligence.

基于当前的一个情况去进行选择.

Conditional Steps: 

x = 5
if x < 10:print('Smaller')
if x > 20:print('Bigger')
print('Done')

Comparison Operators (比较符): to compare the variables and will not affect the values.

Boolean expressions ask a question and produce a Yes or No result which we use to control program flow. It also using comparison expressions evaluate to True / False or Yes / No.

< Less than

<= Less than or Equal to

= = Equal to

>= Greater than or Equal to

> Greater than

!= Not equal

Tips: “=” is used for assignment.

Tips: Space in Python is important.

Tips: 4 Space or Tab may not equivalent in Python.

Tips: De-indenting and indenting.

等于号用作变量赋值. 空格键和Tab键是不一样的, 如果要进行缩紧, 建议手敲四下空格.

Two-way Decisions (else): sometimes we want to do one thing if a logical expression is true and something else if the expression is false.

x = 4
if x > 2:print('Bigger')
else:print('Smaller') 
print('Done')

3.2 More Conditional Statements (更多的条件语句)

Multi-way (elif): if if is false, elif still make choices.

if x < 2:print('Below 2')
elif x < 20:print('Below 20')
else:print('Something else')

The try / expect Structure (try语句): preventing errors or traceback in advance.

If the code in the TRY works - the EXCEPT is skipped.

If the code in the TRY fails - it jumps to the EXCEPT.

astr = 'Bob'
try:istr = int(astr)
except:istr = -1
print('Done', istr)

其作用是为了防止Python异常终止, 导致后续程序无法执行.

Try的内容执行成功Execpt内的内容不执行.

Try的内容报错后执行Execpt内的内容.

Exercise: pay rate is 10.50, 40 hours and below 40 hours is normal rate, if over 40 hours that every single hour is 1.5 times rate. Use python to calculate 45 hours of the pay.

4.1 Using Functions (使用函数)

Forth pattern of code. Sequential, conditional, iterations, and store and reuse.

Stored and Reuse Steps: repeat itself.

def thing():print('Hello')print('Fun')>>> thing()
Hello
Fun
>>> print('Zip')
Zip
>>> thing()
Hello
Fun

If a function appears in code line, Python will run the function first, then return a result to the code line, maybe a value. Then, code continues to running use the result returned by the function. 

  • print() :输出
  • input() :输入
  • str(): 转换为字符串
  • int(): 转换为整数
  • float(): 转换为浮点数(小数)
  • len(): 返回字符串长度
  • .lower(): 转换小写
  • .upper(): 转换大写
>>> x = ABC
>>> y = x.lower()
>>> print(y)
abc

4.2 Building Functions (创建函数)

  • We create a new function using  the def keyword followed by optional parameters in parentheses.
  • We indent the body of the function.
  • This defines the function but does not execute the body of the function.
  • 用def关键词来定义一个函数和他的选项.
  • 函数本身内容需要进行缩进.
  • 函数在未引用的情况下是不会做任何操作的.

Arguments (参数)

  • An argument is a value we pass into the function as its input when we call the function.
  • We use arguments so we can direct the function to do different kinds of work when we call it at different times. 
  • We put the arguments in parentheses after the name of the function.
  • 参数是指在使用函数时获取的用户输入的内容.
  • 我们可以通过参数来实现函数的多个功能.
  • 我们将参数放入函数的括号中.

Parameters (传入参数): A parameter is a variable which we use in the function definition.

def greet(lang):if lang == 'es':print('Hola')elif lang == 'fr':print('Bonjour')elif lang == 'en':print('Hello')>>> greet('en')
Hello
>>>greet('fr')
Bonjour

Return Value (返回值): A ‘fruitful’ function is one that produces a result or return a value.

It ends the function election and “send back” the result of the function.

我们称一种函数为“富饶的”函数因为它最终会返回一个值.

def greet():return "Hello"
print(greet(), "Cooper")

Multiple parameter / argument (多参数): we can define more than one parameter in the function definition. And we can match the number and order of arguments and parameters.

函数可以定义多个参数, 用户按照顺序进行传参.

Using function to achieve last Exercise!

5.1 Loops and Iteration (循环与迭代)

Repeated Steps: loops have iteration variables that change each time through a loop. Often these iteration variables go through a sequence of numbers.

循环通常会有一个变量作为开始与结束, 而这个变量通常会是一个区间的数字.

We need to make sure that the iteration variables correct, and it will change every time, otherwise, the loop will run forever. An Infinite Loop

我们需要确保迭代变量内容与逻辑正确, 避免死循环/无限循环的情况发生. 

n = 5
while n > 0:print(n)n = n -1
print('Blastoff')
print(n)

Break Out of a Loop (退出循环): the break statement ends the current loop and jumps to the statement immediately following the loop.

while True:line = input('>')if line == 'done':breakprint(line)
print('Done!')

Finishing an Iteration with Continue (使用Continue去完成迭代): The continue statement ends the current iteration and jumps to the top of the loop and starts the next iteration.

while True:line = input('>')if line[0] == '£':continueif line == 'done':breakprint(line)
print('Done!')

5.2 Definite Loops (定义循环)

A simple Definite Loop (简单的定义循环): Define loops (for) have explicit iteration variables that change each time through a loop. These iteration variables move through the sequence or set.

for i in [5, 4, 3, 2, 1]:print(i)

For 循环有精确的迭代变量, 而这个迭代变量可以是一个列表或一个数组等内容.

5.3 Finding the Largest Value (通过循环寻找最大值)

Making “Smart” Loops

largest_so_far = -1
print('Before', largest_so_far)
for the_num in [9, 41, 12, 3, 74 ,15]:if largest_so_far > the_num:largest_so_far = the_numprint(largest_so_far, the_num)print('After', largest_so_far)

Computer does the different way like human beings. Computer is more complex than human beings however it more efficient than human beings. 

计算机与人在处理上是不一样的, 计算机的处理会更加的复杂与高效.

5.4 Loop Idioms (循环语法)

do Count/do Sum/do Average/do Filtering/using Boolean Variable/Find Smallest

通过使用循环可以去实现很多内容, 比如计数/求和/求均/条件等.

None: Using None to indicate a value didn’t exist yet. 

if var is None :

then…

Is None is a stronger equality than double equals.

Double equals (= =) is mathematically equal to with potential conversion. 

is None 是一个强相等, 其必须在格式上与形式上完全一样.

而双等于则是数学意义上的相等.

更多内容请访问: https://www.c-kli.com/index.php/2020/05/15/umc-101-getting-started-with-python/

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. Linux企业实战-----docker仓库的搭建与管理(官方仓库、私有仓库、用户认证、远程连接)

    目录1.docker hub(官方镜像仓库)1.1 登录docker hub1.2 对推送的镜像打标签1.3 推送镜像1.4 拉取镜像1.5 删除 dockerhub 上的仓库2.搭建私有仓库2.1 配置阿里云镜像加速器2.2 下载 registry 镜像2.3 上传本地镜像到 registry2.4 配置 registry 加密(tls)2.5 测试3.docker …...

    2024/4/26 8:26:55
  2. Python爬虫爬取B站排行榜数据

    目录写在前文获取网页数据提取数据整合并保存数据运行结果写在前文很多人学习python,不知道从何学起。 很多人学习python,掌握了基本语法过后,不知道在哪里寻找案例上手。 很多已经做案例的人,却不知道如何去学习更加高深的知识。 那么针对这三类人,我给大家提供一个好的学…...

    2024/4/4 15:00:48
  3. TVM: End-to-End Optimization Stack for Deep Learning

    背景 要让AI芯片支持深度学习架构,要将深度学习架构等部署到芯片上就需要将深度学习架构中的这些代码编译成芯片支持的指令集,所以要从头到尾设计一套软件栈,做一套全栈的优化。所以现在的许多深度学习的架构只能在某一些厂商的GPU设备上获得加速,这种支持依赖于特定的GPU库…...

    2024/4/27 22:19:00
  4. iPerf3 局域网性能测试路由器

    iPerf3 搭建局域网内部测速环境 这篇文章主要来简单写写局域网里怎么测速,比如日常换了个新路由,想要测试一下无线性能和覆盖之类的情况。 外网测速这一块,市面上的各类软件已经是数不清了,最有名的应该就是 Ookla 出的 Speedtest 了,各种平台都有对应客户端,使用起来极其…...

    2024/4/4 14:48:53
  5. LSTM理解

    背景 本文按照RNN和LSTM(1997年提出)进行对比、LSTM的标准流程、LSTM的常见变种、为什么LSTM不会出现梯度爆炸或梯度消失?、双向LSTM、深度双向LSTM的脉络进行记述。由于常见的RNN随着序列的增长产生梯度爆炸或梯度消失问题,导致在实际应用过程中并不能学习到间隔太远的输入…...

    2024/4/4 12:51:08
  6. centos下zookeeper开机启动

    以下解决方案借鉴了:https://www.pocketdigi.com/20180131/1593.html环境:centos7,集成zookeeper的kafka,kafka_2.12-2.6.0,jdk1.8思路:用rc.local来解决? 答案不行,用两三个小时,无法解决,而且rc.local文件中也有明确注释“It is highly advisable to create own sy…...

    2024/4/28 4:55:40
  7. SpringBoot AOP拦截、修改请求参数

    前言 最近有这么个功能,由于使用了thymeleaf,多个页面遇到要使用同一个数据的问题,但是如果在每个Controller下都要向Model放数据,那么就有很多重复代码,不太优雅,所以想到了AOP,在进入方法前取到Model实例,向他增加数据即可。 引入依赖<dependency><groupId&…...

    2024/4/27 23:55:33
  8. 学习通景观地学基础作业

    网络选修课学习通景观地学基础党安荣老师主讲 章节测验答案景观地学基础作业答案 景观地学基础 绪论(一) 1 【单选题】景观地学基础的范围不包括(C)。 A、地貌 B、地质 C、人工建筑结构 D、土壤 2 【单选题】“黄山四绝”不包括(C)。 A、奇松 B、怪石 C、孔庙 D、云海 3 …...

    2024/4/27 22:50:37
  9. 使用synchronized产生的死锁问题及其解决

    synchronized 死锁 synchronized作为解决并发编程中原子性、可见性和有序性问题的万能钥匙。其带来的是性能上的问题。使用synchronized关键是看充当锁的角色,锁的作用是保护资源,我们要确定其锁定的范围囊括了需要保护的资源。我们知道synchronized(类名.class){}的用法,类…...

    2024/4/4 14:26:11
  10. ISP(图像信号处理)算法概述、工作原理、架构、处理流程

    转自:https://zhuanlan.zhihu.com/p/115321553ISP的主要内部构成:ISP内部包含 CPU、SUP IP(各种功能模块的通称)、IF 等设备ISP的控制结构:1、ISP逻辑 2、运行在其上的firmwareISP上的Firmware包含三部分:AP对ISP的操控方式:外置:I2C/SPI。 内置:MEM MAP、MEM SHAREIS…...

    2024/4/12 13:15:50
  11. 办理个人pos机危害

    Pos机在人们的印象里,是一些商家作为收款的工具,这几年随着个体的需求量增加,很多人在办理pos机的时候,都会有一些顾虑,首先是安全,其次是在办理之后对于其它方面会不会带来什么影响,接下来三陆合pos就来分析一下。 资金安全,只要是正规机构旗下的产品,安全都是有保障…...

    2024/4/4 14:18:32
  12. 终于迎来了离职,我相信未来可期

    终于来到了这一天,老大说你野心不够、努力不够、开发中容易走弯路、你马上结婚了以后还生孩子,这份工作强度不适合你。我终于熬到了这一天,接近一年的时间,跟闺蜜聚会只有两次。一次是在入职刚搬家的时候,一次是在前两周想跟闺蜜吐槽现在的生活。这一年的煎熬,大概可以用…...

    2024/4/23 3:48:11
  13. Apache Spark 3.0 DStreams-Streaming编程指南

    目录总览一个简单的例子基本概念连结中初始化StreamingContext离散流(DStreams)输入DStreams和接收器基本资料进阶资源自订来源接收器可靠性DStreams上的转换DStreams上的输出操作使用foreachRDD的设计模式DataFrame和SQL操作MLlib操作缓存/持久化检查点累加器,广播变量和检…...

    2024/4/4 11:59:59
  14. 超星学习通宋辽金史课程答案

    族源与国家肇基(一) 1 【单选题】后晋石敬瑭于(C)称帝。 A、公元940年 B、公元938年 C、公元936年 D、公元942年 2 【单选题】(D)是后唐的都城。 A、开封 B、沁阳 C、安阳 D、洛阳 3 【单选题】耶律阿保机是下面哪一个少数民族的可汗?(A) A、契丹 B、维吾尔族 C、朝鲜…...

    2024/4/10 2:11:17
  15. 从动物纪录片中所学所得

    蓝色星球:自然界中,没有什么地方会比大海更让我们心驰向往,那里狂野令人印象深刻,但也充满无穷魅力,让人神魂颠倒。本系列片将带给你影院般的震撼体验,将邀你一起奔向我们地球上面积最广阔,但又知之甚少的海洋,进行一次紧张激烈的探险。从冰雪覆盖的极地海域到颜色变幻…...

    2024/4/26 11:51:47
  16. 轻量级实时语义分割:ENet & ERFNet

    轻量级实时语义分割:ENet & ERFNetENetERFNet总结 ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation发表在CVPR2016上。 ERFNet: Efficient Residual Factorized ConvNet for Real-Time Semantic Segmentation则发表在2018年1月的IEEE Tran…...

    2024/4/22 21:22:09
  17. 【题解】洛谷P4838 P哥破解密码

    前往:我自己搭建的博客题目洛谷P4838 P哥破解密码题解对于n<=1e7的数据,可以使用常规的动态规划。用f[i][0/1/2]分别表示长度为i,且以AA/A/B结尾的字符串的数量。可以得到状态转移方程:f[i][0]=f[i-1][1] , f[i][1]=f[i-1][2] , f[i][2]=f[i-1][0]+f[i-1][1]+f[i-1][2]对…...

    2024/4/6 21:44:54
  18. 面向对象——异常

    异常产生原因Throwable类中定义了3个异常处理的方法String getMessage() 返回此throwable的简短描述。String toString() 返回此throwable的详细消息字符串。void printStackTrace() JVM打印异常对象,默认此方法,打印的异常信息是最全面的对比三个方法分别放在catch里控制台打…...

    2024/4/8 0:37:18
  19. 一篇文章带你彻底了解Vue.js如何实现数据双向绑定

    Object.defineProperty中的秘密 学习过Vue.js的小伙伴都知道,Vue.js的核心在于组件化开发和数据的双向绑定来实现响应式布局,而在Vue2.x中提到数据的双向绑定,就一定会想到Object.defineProperty(),下面先来介绍一下Vue.js是如何实现数据的双向绑定的吧! 一、数据双向绑定…...

    2024/4/6 22:52:46
  20. 组件、局部的组件、表行组件、组件数据传递

    组件:基础的基础 知识点组件(Component,Portlet)组件 组件就是页面上的一小块区域内容,完成一个小的页面功能,请参照视频第六课。 综合例 <div id="myApp"><today-weather></today-weather> </div> <script>Vue.component(today-…...

    2024/4/7 0:26:56

最新文章

  1. 医学影像增强:空间域方法与频域方法等

    医学影像图像增强是一项关键技术,旨在改善图像质量,以便更好地进行疾病诊断和评估。增强方法通常分为两大类:空间域方法和频域方法。 一、 空间域方法 空间域方法涉及直接对医学影像的像素值进行操作,以提高图像的视觉质量。以下是一些常用的空间域方法: 对比度调整:通过…...

    2024/4/28 5:35:17
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. 6.9物联网RK3399项目开发实录-驱动开发之PWM的使用(wulianjishu666)

    嵌入式实战开发例程&#xff0c;珍贵资料&#xff0c;开发必备&#xff1a; 链接&#xff1a;https://pan.baidu.com/s/1149x7q_Yg6Zb3HN6gBBAVA?pwdhs8b PWM 使用 前言 AIO-3399J 开发板上有 4 路 PWM 输出&#xff0c;分别为 PWM0 ~ PWM3&#xff0c;4 路 PWM 分别使用在…...

    2024/4/28 2:14:12
  4. CTK插件框架学习-事件监听(04)

    CTK插件框架学习-插件注册调用(03)https://mp.csdn.net/mp_blog/creation/editor/136989802 一、主要流程 发送者注册消息事件接收者订阅消息事件接收者相应消息事件 事件监听比插件接口调用耦合性更弱&#xff0c;事件由框架维护&#xff0c;不需要指定发送方和接收方 二、…...

    2024/4/25 1:44:38
  5. 416. 分割等和子集问题(动态规划)

    题目 题解 class Solution:def canPartition(self, nums: List[int]) -> bool:# badcaseif not nums:return True# 不能被2整除if sum(nums) % 2 ! 0:return False# 状态定义&#xff1a;dp[i][j]表示当背包容量为j&#xff0c;用前i个物品是否正好可以将背包填满&#xff…...

    2024/4/28 4:04:40
  6. 【Java】ExcelWriter自适应宽度工具类(支持中文)

    工具类 import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet;/*** Excel工具类** author xiaoming* date 2023/11/17 10:40*/ public class ExcelUti…...

    2024/4/27 3:39:11
  7. Spring cloud负载均衡@LoadBalanced LoadBalancerClient

    LoadBalance vs Ribbon 由于Spring cloud2020之后移除了Ribbon&#xff0c;直接使用Spring Cloud LoadBalancer作为客户端负载均衡组件&#xff0c;我们讨论Spring负载均衡以Spring Cloud2020之后版本为主&#xff0c;学习Spring Cloud LoadBalance&#xff0c;暂不讨论Ribbon…...

    2024/4/27 12:24:35
  8. TSINGSEE青犀AI智能分析+视频监控工业园区周界安全防范方案

    一、背景需求分析 在工业产业园、化工园或生产制造园区中&#xff0c;周界防范意义重大&#xff0c;对园区的安全起到重要的作用。常规的安防方式是采用人员巡查&#xff0c;人力投入成本大而且效率低。周界一旦被破坏或入侵&#xff0c;会影响园区人员和资产安全&#xff0c;…...

    2024/4/27 12:24:46
  9. VB.net WebBrowser网页元素抓取分析方法

    在用WebBrowser编程实现网页操作自动化时&#xff0c;常要分析网页Html&#xff0c;例如网页在加载数据时&#xff0c;常会显示“系统处理中&#xff0c;请稍候..”&#xff0c;我们需要在数据加载完成后才能继续下一步操作&#xff0c;如何抓取这个信息的网页html元素变化&…...

    2024/4/27 3:39:08
  10. 【Objective-C】Objective-C汇总

    方法定义 参考&#xff1a;https://www.yiibai.com/objective_c/objective_c_functions.html Objective-C编程语言中方法定义的一般形式如下 - (return_type) method_name:( argumentType1 )argumentName1 joiningArgument2:( argumentType2 )argumentName2 ... joiningArgu…...

    2024/4/27 3:39:07
  11. 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】

    &#x1f468;‍&#x1f4bb;博客主页&#xff1a;花无缺 欢迎 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! 本文由 花无缺 原创 收录于专栏 【洛谷算法题】 文章目录 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】&#x1f30f;题目描述&#x1f30f;输入格…...

    2024/4/27 3:39:07
  12. 【ES6.0】- 扩展运算符(...)

    【ES6.0】- 扩展运算符... 文章目录 【ES6.0】- 扩展运算符...一、概述二、拷贝数组对象三、合并操作四、参数传递五、数组去重六、字符串转字符数组七、NodeList转数组八、解构变量九、打印日志十、总结 一、概述 **扩展运算符(...)**允许一个表达式在期望多个参数&#xff0…...

    2024/4/27 12:44:49
  13. 摩根看好的前智能硬件头部品牌双11交易数据极度异常!——是模式创新还是饮鸩止渴?

    文 | 螳螂观察 作者 | 李燃 双11狂欢已落下帷幕&#xff0c;各大品牌纷纷晒出优异的成绩单&#xff0c;摩根士丹利投资的智能硬件头部品牌凯迪仕也不例外。然而有爆料称&#xff0c;在自媒体平台发布霸榜各大榜单喜讯的凯迪仕智能锁&#xff0c;多个平台数据都表现出极度异常…...

    2024/4/27 21:08:20
  14. Go语言常用命令详解(二)

    文章目录 前言常用命令go bug示例参数说明 go doc示例参数说明 go env示例 go fix示例 go fmt示例 go generate示例 总结写在最后 前言 接着上一篇继续介绍Go语言的常用命令 常用命令 以下是一些常用的Go命令&#xff0c;这些命令可以帮助您在Go开发中进行编译、测试、运行和…...

    2024/4/26 22:35:59
  15. 用欧拉路径判断图同构推出reverse合法性:1116T4

    http://cplusoj.com/d/senior/p/SS231116D 假设我们要把 a a a 变成 b b b&#xff0c;我们在 a i a_i ai​ 和 a i 1 a_{i1} ai1​ 之间连边&#xff0c; b b b 同理&#xff0c;则 a a a 能变成 b b b 的充要条件是两图 A , B A,B A,B 同构。 必要性显然&#xff0…...

    2024/4/27 18:40:35
  16. 【NGINX--1】基础知识

    1、在 Debian/Ubuntu 上安装 NGINX 在 Debian 或 Ubuntu 机器上安装 NGINX 开源版。 更新已配置源的软件包信息&#xff0c;并安装一些有助于配置官方 NGINX 软件包仓库的软件包&#xff1a; apt-get update apt install -y curl gnupg2 ca-certificates lsb-release debian-…...

    2024/4/28 4:14:21
  17. Hive默认分割符、存储格式与数据压缩

    目录 1、Hive默认分割符2、Hive存储格式3、Hive数据压缩 1、Hive默认分割符 Hive创建表时指定的行受限&#xff08;ROW FORMAT&#xff09;配置标准HQL为&#xff1a; ... ROW FORMAT DELIMITED FIELDS TERMINATED BY \u0001 COLLECTION ITEMS TERMINATED BY , MAP KEYS TERMI…...

    2024/4/27 13:52:15
  18. 【论文阅读】MAG:一种用于航天器遥测数据中有效异常检测的新方法

    文章目录 摘要1 引言2 问题描述3 拟议框架4 所提出方法的细节A.数据预处理B.变量相关分析C.MAG模型D.异常分数 5 实验A.数据集和性能指标B.实验设置与平台C.结果和比较 6 结论 摘要 异常检测是保证航天器稳定性的关键。在航天器运行过程中&#xff0c;传感器和控制器产生大量周…...

    2024/4/27 13:38:13
  19. --max-old-space-size=8192报错

    vue项目运行时&#xff0c;如果经常运行慢&#xff0c;崩溃停止服务&#xff0c;报如下错误 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 因为在 Node 中&#xff0c;通过JavaScript使用内存时只能使用部分内存&#xff08;64位系统&…...

    2024/4/27 1:03:20
  20. 基于深度学习的恶意软件检测

    恶意软件是指恶意软件犯罪者用来感染个人计算机或整个组织的网络的软件。 它利用目标系统漏洞&#xff0c;例如可以被劫持的合法软件&#xff08;例如浏览器或 Web 应用程序插件&#xff09;中的错误。 恶意软件渗透可能会造成灾难性的后果&#xff0c;包括数据被盗、勒索或网…...

    2024/4/27 3:22:12
  21. JS原型对象prototype

    让我简单的为大家介绍一下原型对象prototype吧&#xff01; 使用原型实现方法共享 1.构造函数通过原型分配的函数是所有对象所 共享的。 2.JavaScript 规定&#xff0c;每一个构造函数都有一个 prototype 属性&#xff0c;指向另一个对象&#xff0c;所以我们也称为原型对象…...

    2024/4/27 22:51:49
  22. C++中只能有一个实例的单例类

    C中只能有一个实例的单例类 前面讨论的 President 类很不错&#xff0c;但存在一个缺陷&#xff1a;无法禁止通过实例化多个对象来创建多名总统&#xff1a; President One, Two, Three; 由于复制构造函数是私有的&#xff0c;其中每个对象都是不可复制的&#xff0c;但您的目…...

    2024/4/27 3:39:00
  23. python django 小程序图书借阅源码

    开发工具&#xff1a; PyCharm&#xff0c;mysql5.7&#xff0c;微信开发者工具 技术说明&#xff1a; python django html 小程序 功能介绍&#xff1a; 用户端&#xff1a; 登录注册&#xff08;含授权登录&#xff09; 首页显示搜索图书&#xff0c;轮播图&#xff0…...

    2024/4/26 23:53:24
  24. 电子学会C/C++编程等级考试2022年03月(一级)真题解析

    C/C++等级考试(1~8级)全部真题・点这里 第1题:双精度浮点数的输入输出 输入一个双精度浮点数,保留8位小数,输出这个浮点数。 时间限制:1000 内存限制:65536输入 只有一行,一个双精度浮点数。输出 一行,保留8位小数的浮点数。样例输入 3.1415926535798932样例输出 3.1…...

    2024/4/27 20:28:35
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57