2. Grammatical rules, conditional statements, circular statements, methods and classes. The basic intrinsic data type, Python is weakly typed, but there are still types, the characteristics and operations of these types. The use of built-in library API, such as sqlite, network request library, json, etc.
3.python syntax is as follows: definition of variables in programming language, a data needs to be received by variables: java: variable type variable name = value intage= 18js: var variable name = value varage= 18python: variable name = value age = 18.
4. The restrictions on strings in 4.Python are relatively loose. Both double quotation marks and single quotation marks can represent strings, depending on personal preference, whether to use single quotation marks or double quotation marks. Personally, I prefer single quotation marks because they are convenient to write. Strings also support the+operation, which means that two strings are concatenated.
5. When executing the program with python+ file name, the instruction will call the interpreter and start executing the script until the script is finished. Python script files all have the extension. py. About the content of python basic grammar sharing, Bian Xiao is here to share with you.
6.Python syntax is some rules that need to be followed when writing Python programs, as well as some data usage methods. Python basic syntax includes basic data types, Boolean values, functions, loop statements, conditional judgments, classes, file operations, modules and so on.