例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"the person is 5 feet 11 inches tall."feet {} inches tall.".format(list[1], list[1]) #I am aware taking the same index of list will give me 5-
假设我有一些异步协程,它获取一些数据并返回它。如下所示: result = await some_io()基本上,这个协程是从协程链中调用的,初始协程是通过创建一个任务来运行的但是,如果出于测试目的,我只想在运行某些文件时以这种方式运行一个协程: result = await fetch_data(*args)
print(res