一、自動化測驗的概念
性能系統負載能力穩定性過載操作下的系統瓶頸自動化測驗,使用程式代替人工,可以提高測驗效率性,自動化測驗能自動化使用代碼模擬大量用戶,讓用戶請求多頁和多用戶并發請求收集引數,并對系統負載能力進行統計生成報告,
二、Python自動化測驗基礎必備知識點
1.Python中的識別符號(變數,類,方法等取的名字)
(1)必須是字母,數字或者下劃線組成
(2)數字不能開頭
(3)對大小寫敏感(區分大小寫)true與True
age=20 _age=20
2.python中的關鍵字
'False', 'None', 'True', 'and',
'as', 'assert', 'async', 'await',
'break', 'class', 'continue', 'def',
'del', 'elif', 'else', 'except', 'finally',
'for', 'from', 'global', 'if', 'import',
'in', 'is', 'lambda', 'nonlocal', 'not',
'or', 'pass', 'raise', 'return', 'try',
'while', 'with', 'yield']
3.python中的注釋方法
age=10 #單行注釋
'''age=10
aa=10
'''多行注釋
4.Python行與縮進
a=10
b=20
def sum(a,b):
return a+b#符合要求
return a+b#不符合要求
print(sum(10,20))
5.多行陳述句
長陳述句以 \來實作多行陳述句
toal=item_one+\
item_two\
item_three
如果陳述句中包括{}[]或者()就不需要使用多行連接符號
toal=['a','c']
到此這篇關于Python自動化測驗基礎必備知識點總結的文章就介紹到這了
如果你想學習自動化測驗,歡迎加入筆者的交流群:735745871,我們一起交流一起學習!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/555457.html
標籤:其他
下一篇:返回列表
