Download and install VSCode on Linux and use programming to output the current time

Download and install VSCode on Linux and use programming to output the current time

Which parameter does the rpm command use to install software: -i
Which parameter does the rpm command use to delete software: -e
The directory where the yum installation source configuration file is located is: /etc/yum.repo.d
The suffix of the yum installation source configuration file must be: repo
The yum commands that can delete software packages are: yum remove; yum erase
When using yum to install software, if you want yum to install directly without manual confirmation, you can use the parameter: -y

Download and install VSCode according to your Linux system (different distributions have different software installation commands)

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc 

insert image description here

sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' 

insert image description here

yum check-update 

insert image description here

sudo yum install code
code --version 

insert image description here

Use programming to output the current time

insert image description here

Source code

import datetime
t1 = datetime.datetime.now()
print(t1)

run

insert image description here

Summarize

This is the end of this article about downloading and installing VSCode on Linux and using programming to output the current time. For more related content about downloading and installing VSCode on Linux and using programming to output the current time, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of VSCode usage configuration and VSCode plug-in installation tutorial
  • How to install VScode and use it in Windows and configure it in Chinese
  • Vscode typing effects plug-in Power Mode installation and usage introduction
  • vsCode installation tutorial and plugin installation method
  • Detailed tutorial for installing and using vscode

<<:  Detailed explanation of JavaScript axios installation and packaging case

>>:  A tutorial for beginners to install and log in to mysql-8.0.19-winx64 (must-read for beginners)

Recommend

How to deploy LNMP architecture in docker

Environmental requirements: IP hostname 192.168.1...

Use xshell to connect to the Linux server

Benefits of using xshell to connect to Linux We c...

In-depth understanding of the use of r2dbc in MySQL

Introduction MySQL should be a very common databa...

A detailed introduction to Linux memory management and addressing

Table of contents 1. Concept Memory management mo...

Detailed explanation of long transaction examples in MySQL

Preface: The "Getting Started with MySQL&quo...

Detailed explanation of slots in Vue

The reuse of code in vue provides us with mixnis....

Docker configures the storage location of local images and containers

Use the find command to find files larger than a ...

How InnoDB implements serialization isolation level

Serialization implementation InnoDB implements se...

MySQL column to row conversion and year-month grouping example

As shown below: SELECT count(DISTINCT(a.rect_id))...

CSS horizontal centering and limiting the maximum width

A CSS layout and style question: how to balance h...

Why are the pictures on mobile web apps not clear and very blurry?

Why? The simplest way to put it is that pixels are...

How to build DockerHub yourself

The Docker Hub we used earlier is provided by Doc...

Data Structure - Tree (III): Multi-way Search Tree B-tree, B+ tree

Multi-way search tree Height of a complete binary...