Fortune Telling Collection - Zodiac Guide - Python or C# suits me?
Python or C# suits me?
Python was originally designed to be similar to English expression. Many expressions are easy to read as long as the appropriate variable names are used. In addition, because Python's syntax is simple, there are no grammatical brackets and a large number of modifiers, the construction of various classes C and different initialization variables, the code written by Python is easy to read and learn.
C# inherits many original C-like grammars from C++ and Java. More importantly, C# grammar makes us have to follow certain rules to write our own methods or inheritance classes, which is accompanied by another string of modifiers. One thing we can't forget is to put code fragments in brackets. Python just uses the SHIFTS key to make the code look neat.
As for writing scripts, it is worth mentioning that Python scripts are real scripts and can be executed by interpreters. It can be opened with any editor and can be run immediately after modification. This has obvious advantages when there is no IDE or compiler at hand. In addition, Python makes it easier to write cross-platform scripts without recompiling.
However, we have to point out that one disadvantage of Python is that it needs to install a script interpreter on the machine, and at least one interpreter must be packaged in a package or executable file, thus increasing the size of the script from several KB to more than ten megabytes. But for modern computers, the space requirement of more than ten megabytes is basically negligible, so this is not a big problem.
And C# needs IDE to write programs. One advantage of C# is that when you write scripts based on WINDOWS platform, it has strong support for various WINDOWS system components. Such as registry, WMI, network and other built-in tools. C# can use WINFORMS, and can easily create a graphical interface when needed.
There is no way to say which is better, Python or C#. Python is easier to learn and has more open source libraries than C#, but the standard library of C# is better and has higher performance than Python.
- Related articles
- Warm constellation
- Your Highness Wolf, what is the image of Wang Bo?
- What geographic information technology does VR need?
- There are three constellations in the family, and men are the pillars of wealth and happiness. Is this family happy?
- Constellation test of laughing till crying
- Constellation man who drives the teacher crazy _ composition that can make the teacher angry
- 1990 What is the constellation of May 29th of the lunar calendar, that is, June 24th of the solar calendar?
- Why do constellations in the universe form the shape of people or animals?
- What constellation is March 39 _ What constellation is March 39, girl?
- What is the reason why the zodiac woman peeks at her partner's mobile phone?