|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
1 No variable claim needed. Variable does not have type
2 "Tab is the key to control syntax. Need to be handle carefully. A line with tab or no tab determine the logic level of that command.
Tab is just like the"" {"" in C.
if there is "":"" at the end of one command, then [Enter], the next line will start with a tab. E.g if:, the next line is a tab behind if"
3 Tab can be used to promote command. Type pr+tab, shows a list of all commands start with pr
4 IDLE is like cmd for windows, get direct input of command and execute
5 To compose a programe, use Ctrl+N (Create New Window) and type in it and save. With the file open, F5 can run it.
Seems no programe name need to be given for now
6 "=" mean pass value (赋值) from right side to left side; "==" means "等号判断"
7 BIF means Built in Function(“内置函数”)
In IDLE, type: dir(__builtins__), it will list all Built ins in Python. Among the output list, the word in small letters,eg print, are BIF
use BIF help to get the help for BIF. E.g help(print)
8 \n, meaning start with a new line. \ can also used to escape other conflict characters. Such as 'Let\'s talk to her'
9 In long paragraph, can use """ ……""" , within it, use [Enter], it will automatically apply \n for it.
|
评分
-
查看全部评分
|