Electron microscopy
 
F-string (f") in Python
- Integrated Circuits -
- An Online Book -
Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


=================================================================================

 

============================================

TypeError: code:          
          Load images and ColorMixing in DigitalMicrograph
Output:         
         Load images and ColorMixing in DigitalMicrograph

============================================

Timing a process: code:
        Timing a process
Output:        
        Timing a process

===================================================

from functools import reduce: code:
        Timing a process
Output:        
        Timing a process

============================================

Simple F-string: code:
         Sum the numbers of a defined list
Output:         
         Hello LIAO

===================================================

Convert images to image files with different extension: code:
         Snipping tool: take a screen shot from the full screen

===================================================

outer_func() returns inner_func(): code:
         Sum the numbers of a defined list
Output:         
         Sum the numbers of a defined list

===================================================

Use decorators. Decorating the lambda function this way could be useful for debugging purposes: code:
         Sum the numbers of a defined list
Output:         
         Sum the numbers of a defined list

===================================================

Find the maximum in a column in a csv file: code:
        Search with defined functions
Input:
         Search with defined functions
Output:
         Search with defined functions

===================================================

Search a row with a keyword from multiple csv files: code:
         Search in a simple format
Input:
         Multiple csv files in the folder "MyPath".
Outputs:
            Output 1. A csv file with a name of "My_Output.csv" (the csv in red does not have a real "header"):
           Search in a simple format
            Output 2: Printed in Python interface:
            Search in a simple format

============================================

Send emails in HTML format: code:     
          Send emails through Gmail
Output:         
          Send emails through Gmail

============================================

Troubleshooting: Error occurs when running the script below (code):

          Move files from one directory to another (the file must already exist)
Error is:          
          File "C:/GlobalSino2/ICs/page4853movFiles5.py", line 16, in <module>
          os.rename(source, destination)
          FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\yyliao\\Downloads\\AAPL.csv' -> 'C:\\0Python\\Stocks\\IndividualStocks\\AAPL.csv'
         
Correct script (code):          
          Move files from one directory to another (the file must already exist)

===================================================

By default, when a script is executed, the interpreter reads the script and assigns the string __main__ to the __name__ keyword. Code 1 and Code 2:

     Code 1:
          __main__ to the __name__
     Output:         
          __main__ to the __name__         
     Code 2:
          __main__ to the __name__
     Output:         
         __main__ to the __name__

============================================

Extract text files from pdf file page by page (one .txt file per pdf page). code:
        Search with defined functions
     Input:
        Search with defined functions
     Output 1:
        Search with defined functions
     Output 2 (note: each pdf page are double-extracted into each .txt file):
        Search with defined functions

============================================

Copy file: code:
          Move to some position and click mouse at some position
Output:         
         Move to some position and click mouse at some position

         

 

 

=================================================================================