我有一个正在尝试转换的代码,但是它是用Python 2编写的,我想用Python 3打印这段代码,但是它不能以矩阵格式打印。我得到一个无法识别的表格格式的输出。 for n in cols:print print('\t', g) y = res[g][n] print (y),
cost += y *
我有一个problem..whenever,我正在编写任何Python脚本,比如这样print "hello"chmod +x a.py此外,每当我在shabang行下面写任何评论时,它都会给我一个错误:#: bad interpreter : No such file or directory谁能告诉我出了什么问题,怎么解决这个问题..。