# About:this is a study files,May be you can call it : study note.
# Author:mllt9920
# Time:2021/03/29
# coding=utf-8
# Remember:The above sentence is best written at the beginning of the source document
print('Welcome To mllt.cc')
# tips:Ok,now you can use "print" to print some word.next,we will study how to set variable
# tips:before we study variable,we can use a blank newline(line break) to separate them.
print('\n')
# tips:OK,Let's go on with it.
numbers1 = 100
numbers2 = 50
result = numbers2 + numbers1
print(result)
# tips:
print("result is %d" % result)
# tips:OK,I think it's so easy for you,So..let's do a little exercise.
# 编写代码完成以下名片的显示
# == == == == == == == == == == == == == == == == ==
# name:mllt9920
# QQ: 2952458479
# tel: 1008611
# == == == == == == == == == == == == == == == == ==
name = "mllt9920"
QQnumber = 2952458479
telnumber = 1008611
print('== == == == == == == == == == == == == == == == ==')
print('name:%s' % name)
print('QQ:%d' % QQnumber)
print('tel:%d' % telnumber)
print('== == == == == == == == == == == == == == == == ==' + "\n")
# tips:Of course,That's just one way of doing it.
# tips:Maybe the passage is useful for you : https://mllt.cc/index.php/Python/placeholder.html
# tips: We know how to output now,Let's learn about input
# tips:First is"raw_input",but this commend doesn't supports Python3 version.In Python3,only have commend "input"
# password=raw_input("Please enter your password:")
# Attention
# raw_input()
# 1.Inside the braces is the prompt information
# 3.Any value entered by user is treated as a string.
# tips:OK.Please see this passage:https://mllt.cc/index.php/Python/operator.html
# tips:OK.Please see this passage:https://mllt.cc/index.php/Python/ChangeDataType.html
# ok,today we learning go over here
最后修改:2021 年 03 月 29 日 09 : 44 PM
如果觉得我的文章对你有用,请随意赞赏