Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在python中检查汤的类型_Python_Beautifulsoup - Fatal编程技术网

如何在python中检查汤的类型

如何在python中检查汤的类型,python,beautifulsoup,Python,Beautifulsoup,这是我的密码 soup.find("class":"gtx") 如何在python中检查此汤的类型 首先创建一个变量 ty= soup.find("class":"gtx") print(type(ty)) 谢谢Farhan。能告诉我怎么做整数来串这个汤吗

这是我的密码

soup.find("class":"gtx")

如何在python中检查此汤的类型

首先创建一个变量

ty= soup.find("class":"gtx")

print(type(ty)) 

谢谢Farhan。能告诉我怎么做整数来串这个汤吗