enhance: preload general packages (#3567)

This commit is contained in:
Yeuoly 2024-04-17 19:49:53 +08:00 committed by GitHub
parent e02ee3bb2e
commit c7de51ca9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,28 @@ result = f'''<<RESULT>>
print(result)
"""
PYTHON_PRELOAD = """"""
PYTHON_PRELOAD = """
# prepare general imports
import json
import datetime
import math
import random
import re
import string
import sys
import time
import traceback
import uuid
import os
import base64
import hashlib
import hmac
import binascii
import collections
import functools
import operator
import itertools
"""
class PythonTemplateTransformer(TemplateTransformer):
@classmethod