Advertisement
Guest User

p

a guest
Feb 11th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. ii=0
  3. print 'Please input A,B,C of the equation of line[Ax+By+C=0]'
  4. A=input ('A=')
  5. B=input ('B=')
  6. C=input ('C=')
  7. if A==0 and B==0:
  8. raise TypeError('bad parameter (A=0 and B=0)')
  9. #str1:Ax,str2:+By,str3:+C
  10. CreateVar=locals()
  11. Parameter=[A,B,C]
  12. for i in Parameter:
  13. ii+=1
  14. if i==0:
  15. CreateVar['str'+str(ii)]=''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement