我该如何在Vim 7中为python设置语法高亮?
我想为一种代码文件设置我自己的colorschemes和语法高亮.
'〜'在python中意味着什么?
我刚才在python中找到了这个BF解释器.
import sys
#c,i,r,p=0,0,[0]*255,raw_input()
c=0
i=0
p=raw_input()
r=[0]*255
while c<len(p):
m,n,u=p[c],0,r[i]
if m==">":i+=1
if m=="<":i-=1
if m=="+":r[i]+=1
if m=="-":r[i]-=1
if m==".":sys.stdout.write(chr(u))
if m=="[":
if ~u:
while 1:
m=p[c]
if m=="]":n-=1
if m=="[":n+=1
if ~n:break
c+=1
if m=="]":
if u:
while 1:
m=p[c]
if m=="]":n-=1
if m=="[":n+=1
if ~n:break
c-=1
c+=1
Run Code Online (Sandbox Code Playgroud)
我想知道它是做什么的,因为我想在我的ti 84(和PF一个)上制作一个