更新 Calculate.py

This commit is contained in:
Mingkun Wang 2023-03-13 15:03:23 +08:00 committed by GitHub
parent 07d3255376
commit a6689d7352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,8 @@ eval()函数可对括号中的含变量表达式做运算
" 1 2 3 4 5 "
-7 -6 -5 -4 -3 -2 -1 :反向递减序号
使用[]获取字符串中一个或多个字符
str[0]获取第一个字 str[0:2]获取前两个字 str[0:-1]字符串去掉末位后输出 str[1:]去首位
str[0]获取第一个字 str[0:2]获取前两个字 str[0:-1]字符串去掉末位后输出 str[1:]去首位
str[m:n[:k]]m位至n位k为步长
['F', 'f', ''] : 列表类型数据
'''
numdata = eval(In[0:-1])