directory

  • Introduction to Python CHR functions
  • The Python CHR function is used
  • Guess you like it

Recommended path for learning Python: Python Learning Directory >> Python Basics

Introduction to Python CHR functions

inPythonOrd function can be a character as a parameter, return the corresponding ASCLL code;

Where the built-in functions CHR andWord functionOn the contrary,CRH functionThe ASCLL code can be converted to the corresponding character;

The syntax is as follows:

Arguments: I: a number that can be in base 10 or base 16; Return value: Returns the character corresponding to the decimal or hexadecimal ASCLL code; ''' chr(i)Copy the code

The Python CHR function is used

#! Usr /bin/env python # -* -coding :utf-8 _*- "" www.codersrc.com @file :Python CHR function. py @time :2021/05/18 07:37 @motto: A thousand miles without a small step, a river without a small stream, the wonderful life of the program needs to be accumulated with perseverance! "" Print (CHR (97)) print(CHR (105)) print(CHR (65)) print(CHR (0x65))Copy the code

3.Guess you like

  1. Python conditional derivations
  2. Python list derivations
  3. Python dictionary derivations
  4. Python variable argument *argc/**kargcs
  5. Python anonymous function lambda
  6. Python return logic determines expressions
  7. Python is differs from ==
  8. Python mutable and immutable data types
  9. Shallow and deep copies of Python
  10. Python exception Handling
  11. Python thread creation and parameter passing
  12. Python thread mutex Lock
  13. Python thread time Event
  14. The Python thread Condition variable Condition
  15. Python thread Timer Timer
  16. Python thread Semaphore
  17. Python thread Barrier object Barrier
  18. Python thread Queue Queue – FIFO
  19. Python thread queue LifoQueue – LIFO
  20. Python thread PriorityQueue PriorityQueue
  21. Python thread Pool ThreadPoolExecutor
  22. Python thread Pool ThreadPoolExecutor
  23. The Python Process module
  24. The Python Process Process is different from threading
  25. Python interprocess communication Queue/Pipe
  26. Python process Pool multiprocessing.pool
  27. Python GIL lock

Python CHR functions

This article is published by the blog – Ape Say Programming Ape Say programming!