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

Linux system calls for operating files

Table of contents 1. Open the file Parameter Intr...

Take you to understand the event scheduler EVENT in MySQL

The event scheduler in MySQL, EVENT, is also call...

HTML is actually the application of learning several important tags

After the article "This Will Be a Revolution&...

Detailed explanation of MySQL 8.0.18 commands

Open the folder C:\web\mysql-8.0.11 that you just...

Deep understanding of the mechanism of CSS background-blend-mode

This article is welcome to be shared and aggregat...

CSS navigation bar menu with small triangle implementation code

Many web pages have small triangles in their navi...

Diagram of the process of implementing direction proxy through nginx

This article mainly introduces the process of imp...

MySQL Basic Tutorial Part 1 MySQL5.7.18 Installation and Connection Tutorial

Starting from this article, a new series of artic...

Mini Program to Implement Calculator Function

This article example shares the specific code of ...

JS array deduplication details

Table of contents 1 Test Cases 2 JS array dedupli...

CSS achieves the effect of aligning multiple elements at both ends in a box

The arrangement layout of aligning the two ends o...

MySQL helps you understand index pushdown in seconds

Table of contents 1. The principle of index push-...

Detailed tutorial for installing ElasticSearch:7.8.0 cluster with docker

ElasticSearch cluster supports動態請求的方式and靜態配置文件to ...

Learn more about MySQL indexes

1. Indexing principle Indexes are used to quickly...

An article teaches you how to implement a recipe system with React

Table of contents 1. Recipe Collection 1.1 Projec...