5/05/2020

Python - Setting up a Python Development Environment in Sublime Text

** Setting up a Python Development Environment in Sublime Text



1. Download : https://www.sublimetext.com/3

2. Sublime Text 실행 : Tools -> Build System -> Automatic 체킹



3. Test.py 작성후 실행 : Tools -> Build


================Test.py=====================

import sys

print(sys.executable)
print(sys.version)

class Employee:

"""A sample Employee class"""

def __init__(self, first, last):
self.first = first
self.last = last

@property
def email(self):
return '{}.{}@email.com'.format(self.first, self.last)

@property
def fullname(self):
return '{} {}'.format(self.first, self.last)

emp_1 = Employee('John', 'Smith')

print(emp_1.first)
print(emp_1.email)
print(emp_1.fullname)

---------------------------------

C:\Users\purunet\AppData\Local\Programs\Python\Python38-32\python.exe
3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)]
John
John.Smith@email.com
John Smith

---------------------------------