You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#### fire的使用
|
|
|
|
|
|
|
|
|
|
直接对类的调用
|
|
|
|
|
|
|
|
|
|
(1)无初始化数据
|
|
|
|
|
|
|
|
|
|
![image-20240427210624851](https://telegraph-image-5jy.pages.dev/file/e309aeec0e6233dcafcb0.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
直接调用时,运行文件产生解说,help不会显示具体的函数的参数,需要对具体的类里的函数描述
|
|
|
|
|
|
|
|
|
|
![image-20240415152714800](https://telegraph-image-5jy.pages.dev/file/80f0fd009a63d7154036a.png)
|
|
|
|
|
|
|
|
|
|
当具体对函数来调用help的时候,会显示描述和参数
|
|
|
|
|
|
|
|
|
|
![image-20240415152837332](https://telegraph-image-5jy.pages.dev/file/b63cfccabcbcb00eab00b.png)
|
|
|
|
|
|
|
|
|
|
(2)存在初始化数据的猜数游戏
|
|
|
|
|
|
|
|
|
|
![image-20240427212214775](https://telegraph-image-5jy.pages.dev/file/5b41ff98f543b98141572.png)
|
|
|
|
|
|
|
|
|
|
运行查看参数,这里看到有一个名为play的猜数游戏
|
|
|
|
|
|
|
|
|
|
![image-20240427212315054](https://telegraph-image-5jy.pages.dev/file/cbbfe178f8da41bef4138.png)
|
|
|
|
|
|
|
|
|
|
看初始化这里,可以看到max_numer可控,并且默认为100
|
|
|
|
|
|
|
|
|
|
![image-20240427212723698](https://telegraph-image-5jy.pages.dev/file/de7f06fdc55db160ad7ce.png)
|
|
|
|
|
|
|
|
|
|
当选定-m时,可以修改max_number参数
|
|
|
|
|
|
|
|
|
|
![image-20240427212834344](https://telegraph-image-5jy.pages.dev/file/f88531b4b4ebb3a10ff49.png)
|