【文件属性】:
文件名称:lettuce解析-shodan中文手册
文件大小:5.52MB
文件格式:PDF
更新时间:2021-06-08 11:09:55
selenium2 python
第二节、lettuce解析
创建以下目录结构:
.../tests/features/zero.feature
/steps.py
现在我们来编写 zero.feature 文件的内容
Feature: Compute factorial
In order to play with Lettuce
As beginners
We'll implement factorial
Scenario: Factorial of 0
Given I have the number 0
When I compute its factorial
Then I see the number 1
我这里对上面的内容做个翻译:
功能:计算阶乘
为了使用 lettuce
作为初学者
我们将实现阶乘
场景:0的阶乘