Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

some python function

NotificationsYou must be signed in to change notification settings

chinue/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

two function for colorful printing, a class for timing.

Requirements

Function list

  • printf(print_text, *args, textColor='white', end=' ')
    The usage of this function is similer to 'printf' in C/C++ but you could set your own text color.
    printf("i=%d\n",10,textColor='green')printf("i=%d\n"%10,textColor='red')printf("i=%d\n",10)printf("i=%d\n"%10)
  • print2(print_text, *args, textColor='white', end='\n')
    The usage of this function is similer to 'print' in Python but with a key parameter 'textColor' more
    print2("i=%d"%10,textColor='green')print2("i=%d"%10, [1,2,3],textColor='red')print2("i=%d"%10, [1,2,3])

Class list

  • class Timer
    T=Timer()T.begin()# some functionT.end("Func")

Author

Chen Yu /@Chen Yu

About

some python function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp