Xin Shi

Skip to content
  • Home
  • About Me
  • Research
    • Machine Learning
    • Option Pricing
    • Power System
  • Software
    • C++
    • Linux/Mac System
    • Matlab
    • Python
    • R
  • Teaching
  • For Fun
  • Contact
Home › Python

Python

The difference between tuple and namedtuple

How to add path into python:

  1. import sys
  2. sys.path
  3. sys.path.append('/path/to/the/example_file.py')

Class and module in python

Clear all variables:

  1. import sys
  2. sys.modules[__name__].__dict__.clear()

			

Recent Posts

  • Welcome!

Archives

  • September 2016

Categories

  • Uncategorized
  • Home
  • About Me
  • Research
    • Machine Learning
    • Option Pricing
    • Power System
  • Software
    • C++
    • Linux/Mac System
    • Matlab
    • Python
    • R
  • Teaching
  • For Fun
  • Contact
©2022 - Xin Shi
built on the codon framework