pycharm automatically adds basic information--template when creating py files

Insert image description here
Add the following basic information to the picture, which can be defined by yourself:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : ${DATE} ${TIME}
# @Author  : supermps
# @File    : ${NAME}.py
# @Software : ${PRODUCT_NAME}
import logging
import math
import warnings
from copy import copy
from pathlib import Path

import numpy as np
import pandas as pd
import requests
import torch
import torch.nn as nn
import torch.nn.functional as F
from PIL import Image
from typing import Optional
from torch.cuda import amp

Guess you like

Origin blog.csdn.net/heromps/article/details/132722793