上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 341 下一页
摘要: A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your appli 阅读全文
posted @ 2022-01-27 20:27 emanlee 阅读(76) 评论(0) 推荐(0)
摘要: A Python program can handle date and time in several ways. Converting between date formats is a common chore for computers. Python's time and calendar 阅读全文
posted @ 2022-01-27 20:26 emanlee 阅读(51) 评论(0) 推荐(0)
摘要: Each key is separated from its value by a colon (:), the items are separated by commas, and the whole thing is enclosed in curly braces. An empty dict 阅读全文
posted @ 2022-01-27 20:24 emanlee 阅读(63) 评论(0) 推荐(0)
摘要: A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The main difference between the tuples and the lists is that 阅读全文
posted @ 2022-01-27 20:23 emanlee 阅读(109) 评论(0) 推荐(0)
摘要: Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the sam 阅读全文
posted @ 2022-01-27 20:22 emanlee 阅读(58) 评论(0) 推荐(0)
摘要: The most basic data structure in Python is the sequence. Each element of a sequence is assigned a number - its position or index. The first index is z 阅读全文
posted @ 2022-01-27 20:22 emanlee 阅读(57) 评论(0) 推荐(0)
摘要: Number data types store numeric values. They are immutable data types. This means, changing the value of a number data type results in a newly allocat 阅读全文
posted @ 2022-01-27 20:20 emanlee 阅读(72) 评论(0) 推荐(0)
摘要: In general, statements are executed sequentially − The first statement in a function is executed first, followed by the second, and so on. There may b 阅读全文
posted @ 2022-01-27 20:18 emanlee 阅读(93) 评论(0) 推荐(0)
摘要: Decision-making is the anticipation of conditions occurring during the execution of a program and specified actions taken according to the conditions. 阅读全文
posted @ 2022-01-27 20:15 emanlee 阅读(142) 评论(0) 推荐(0)
摘要: Operators are the constructs, which can manipulate the value of operands. Consider the expression 4 + 5 = 9. Here, 4 and 5 are called the operands and 阅读全文
posted @ 2022-01-27 20:12 emanlee 阅读(75) 评论(0) 推荐(0)
上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 341 下一页