Skip to content

Commit b0233e7

Browse files
committed
提交注释
1 parent 4a3aa4a commit b0233e7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎first learn/字符串.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
print(name_2+name_1)
1919

2020
a=10
21-
name="字符串拼接:%d"%(a)
22-
print(name)
21+
b=12.36
22+
name="字符串拼接:%d以及%.1f"%(a,b)#
23+
print(name)
24+
print(f"1*2的结果{1*2}")
25+
#字符串格式化

0 commit comments

Comments
 (0)