学论坛视频的笔记class1
希望大家一起补充integrated development and learning environment IDLE(最有利学习)
manual module 交互(shell你给他一个指令他立刻给你一个反馈)和编辑器模式
temp = input ("guess whichnumber is in my mind:")
guess = int(temp)//guess = int(input)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'builtin_function_or_method'
if guess == 8:
print(" bingo")
print(" no reward for you hhh")
else:
print(" wrong the answer is 8 hh")
print("game is over")
=========================
雷区:!
英文标点 :
修改编辑器的字体
optionsconfigure IDLEchange to consolas
2 缩进!!!!是livePEP8
BIF!接受用户输入的数据
3 builtin_function 内置函数 答对
dir(__builtins__) 看见BIT 了
页:
[1]