我试着解决了一些基本的CS50 python问题,并陷入了这个问题(我知道这可以通过使用ifs来完成)。基本上,您需要打印文件扩展名,所以我拆分文件名以获得“文件名”、“扩展名”,到目前为止,它确实工作正常。 print("this is a gif file") print("error")
我也尝试了一些不同网站的例
我想在gdb中打印特征矩阵和向量,所以我添加了扩展,以便在这里找到:Python Exception <class 'TypeError'> 'map' object is not subscriptable:
Python Exception <class 'TypeError'> 'map' object is not subs