Skip to content

Commit 615e683

Browse files
authored
Update tpy.py
1 parent 4e346ca commit 615e683

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

true/tpy.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
import sys
33
try:code=open(sys.argv[1]).read()
44
except:print(f"Usage: python {__file__.split(chr(0x5c))[-1]} \"(file name)\"");exit()
5-
targ="";c="";sub=tp=p=0;ts=[];s=[];ld=[]
5+
p=0;ts=[];s=[]
66
while 1:
7-
if code[p]=='"':p+=1;s.append(code[p:code.index('"',p)]);p=code.index('"',p)
8-
elif code[p]==".":print(s.pop())
9-
if code[p]=="\n":break
10-
p+=1
7+
if code[p] == '"' :
8+
p+=1;s.append(code[p:code.index('"',p)])
9+
p=code.index('"',p)
10+
elif code[p] == "." : print(s.pop())
11+
elif code[p] == "," : s.append(input())
12+
if code[p] == "\n" : break
13+
p+=1

0 commit comments

Comments
 (0)