import twstock


def main(argv):
    print('四大買賣點判斷 Best Four Point')
    print('------------------------------')
    if len(argv) > 1:
        sids = argv[1:]
        for sid in sids:
            bfp = twstock.BestFourPoint(twstock.Stock(sid))
            bfp = bfp.best_four_point()
            print('%s: ' % (sid), end='')
            if bfp:
                if bfp[0]:
                    print('Buy  ', bfp[1])
                else:
                    print('Sell ', bfp[1])
            else:
                print("Don't touch")

@@ -18,11 +18,10 @@
 def 
-mai
+ru
 n(ar
@@ -114,79 +114,25 @@
     
-if len(argv) %3E 1:%0A       
+for
  sid
-s =
+ in
  argv
-%5B1:%5D%0A        for sid in sids:%0A    
+:%0A
     
@@ -187,28 +187,24 @@
 d))%0A        
-    
 bfp = bfp.be
@@ -223,28 +223,24 @@
 t()%0A        
-    
 print('%25s: '
@@ -257,20 +257,16 @@
 end='')%0A
-    
         
@@ -281,28 +281,24 @@
             
-    
 if bfp%5B0%5D:%0A 
@@ -296,20 +296,16 @@
 bfp%5B0%5D:%0A
-    
         
@@ -327,36 +327,32 @@
 Buy  ', bfp%5B1%5D)%0A
-    
             else
@@ -365,28 +365,24 @@
             
-    
 print('Sell 
@@ -396,38 +396,30 @@
 1%5D)%0A        
-    
 else:%0A
-    
             

Fix best four point cli