Commit 835f1afd by BellCodeEditor

save project

parent 9e2009c0
Showing with 10 additions and 2 deletions
...@@ -32,3 +32,10 @@ str3 ='''hahaha''' ...@@ -32,3 +32,10 @@ str3 ='''hahaha'''
str4 = '''haha str4 = '''haha
ha''' ha'''
print(str1,str2,str3,str4) print(str1,str2,str3,str4)
string = "Hello World!"
print("string=",string)
print("string[0]",string[0])
print("string[-1]",string[-1])
print("string[1:8]",string[1:8])
print("string[1:-3]",string[1:-3])
\ No newline at end of file
input_d=int(input("长:")) input_d=int(input("长:"))
input_h=int(input("高:")) input_h=int(input("高:"))
print"面积是:",input_d*input_h/2 print"面积是",input_d*input_h/2
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment