在崇高文本中的注释和代码周围的未知矩形

时间:2017-07-22 02:16:19

标签: python sublimetext3

我在Macbook Air上使用Python和sublime text 3。当我使用sublime text3打开.py文件时,我的代码和注释周围会出现一些恼人的白色矩形。

评论周围的矩形显示:

  

阻止评论应以'#'开头

函数头部周围的矩形显示:

  

空行太多

python中关键字周围的矩形显示:

  

关键字/参数等意外空格等于

代码在这里

import pylab
#set line width
pylab.rcParams['lines.linewidth'] = 6
#set font size for titles 
pylab.rcParams['axes.titlesize'] = 20
#set font size for labels on axes
pylab.rcParams['axes.labelsize'] = 20
#set size of numbers on x-axis
pylab.rcParams['xtick.major.size'] = 5
#set size of numbers on y-axis
pylab.rcParams['ytick.major.size'] = 5

def findPayment(loan, r, m):
"""Assumes: loan and r are floats, m an int
Returns the monthly payment for a mortgage of size
loan at a monthly rate of r for m months"""
return loan*((r*(1+r)**m)/((1+r)**m - 1))

问题就像 enter image description here

0 个答案:

没有答案