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

Example code for implementing equal height layout in multiple ways with CSS

The equal height layout described in this article...

Solution to running out of MySQL's auto-increment ID (primary key)

There are many types of auto-increment IDs used i...

Negative margin function introduction and usage summary

As early as in the CSS2 recommendations in 1998, t...

Detailed explanation of Vue's TodoList case

<template> <div id="root"> ...

How to modify Flash SWF files in web pages

I think this is a problem that many people have en...

Tutorial on installing JDK Tomcat MySQL on Linux (remote access using Mac)

One environment Alibaba Cloud Server: CentOS 7.4 ...

Introduction to HTML Chinese Character Encoding Standard

In HTML, you need to specify the encoding used by...

The difference between where and on in MySQL and when to use them

When I was writing join table queries before, I a...

About the correct way to convert time in js when importing excel

Table of contents 1. Basics 2. Problem Descriptio...

How to manually scroll logs in Linux system

Log rotation is a very common function on Linux s...

How to use vue-bootstrap-datetimepicker date plugin in vue-cli 3

Demand Background Recently, I plan to use Vue and...

A brief discussion on docker-compose network settings

Networks usage tutorial Official website docker-c...

Clever use of webkit-box-reflect to achieve various dynamic effects (summary)

In an article a long time ago, I talked about the...