![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/14225782_1543192791702_DEF.jpg)
Elaine Collins
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
How do I write a code to verify that the filename entered by the user ends in .txt?
This is what I have so far. filename = input('Enter your filename ending in .txt: ', 's'); s1 = '.txt'; s2 == 'filename' ...
5 years 前 | 1 个回答 | 0