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
- Python conditional derivations
- Python list derivations
- Python dictionary derivations
- Python variable argument *argc/**kargcs
- Python anonymous function lambda
- Python return logic determines expressions
- Python is differs from ==
- Python mutable and immutable data types
- Shallow and deep copies of Python
- Python exception Handling
- Python thread creation and parameter passing
- Python thread mutex Lock
- Python thread time Event
- The Python thread Condition variable Condition
- Python thread Timer Timer
- Python thread Semaphore
- Python thread Barrier object Barrier
- Python thread Queue Queue – FIFO
- Python thread queue LifoQueue – LIFO
- Python thread PriorityQueue PriorityQueue
- Python thread Pool ThreadPoolExecutor
- Python thread Pool ThreadPoolExecutor
- The Python Process module
- The Python Process Process is different from threading
- Python interprocess communication Queue/Pipe
- Python process Pool multiprocessing.pool
- Python GIL lock
Python CHR functions
This article is published by the blog – Ape Say Programming Ape Say programming!