Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- ii=0
- print 'Please input A,B,C of the equation of line[Ax+By+C=0]'
- A=input ('A=')
- B=input ('B=')
- C=input ('C=')
- if A==0 and B==0:
- raise TypeError('bad parameter (A=0 and B=0)')
- #str1:Ax,str2:+By,str3:+C
- CreateVar=locals()
- Parameter=[A,B,C]
- for i in Parameter:
- ii+=1
- if i==0:
- CreateVar['str'+str(ii)]=''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement