python3.6.4,print输出时出现SyntaxError: invalid syntax
如图所示上一行print就没有出现这个问题,求解啊代码如下:defstatistics(self):print('Simulate'+str(self.duration)...
如图所示上一行print就没有出现这个问题,求解啊代码如下: def statistics(self): print('Simulate' + str(self.duration) + 'minutes, for' + str(len(self.gates) + 'gates') print(self.car_num + 'cars passed the customs') print('Average waiting time:' + self.total_wait_time/self.car_num) print('Average passing time:' + self.total_used_time/self.car_num) i = 0 while not self.waitline.is_empty(): self.waitline.dequeue() i += 1 print(str(i) + 'cars are in waiting line')
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询