logger.info('Start Tick! The time is '+str(os.getpid())+': %s' % datetime.now()) # 业务代码 logger.info('Stop Tick! The time is '+str(os.getpid())+': %s' % datetime.now()) except LockAcquiringError: print('Something happened during normal operation. We just log it.') except LockError: print('Something is really wrong and we prefer to raise the exception') except Exception as e: print(e) print('Something else went wrong')
import json from base64 import b64encode, b64decode from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad from Crypto.Random import get_random_bytes
Error: Failed installing dependency: https://luarocks.org/luaossl-20200709-0.src.rock - Could not find header file for CRYPTO No file openssl/crypto.h in /usr/local/include No file openssl/crypto.h in /usr/include No file openssl/crypto.h in /include You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_INCDIR to the luarocks command. Example: luarocks install luaossl CRYPTO_DIR=/usr/local